Sie sind auf Seite 1von 4

*********************BASIC_ROUTER_CONFIGURATION******************* *******CONFIG_MANAGEMENT enable configure terminal copy running-config startup-config erase startup-config reload *******GLOBAL SETTINGS hostname banner

motd enable password enable secret *******LINE_SETTINGS line con line aux line vty login password -----------------setting console password Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#line console 0 Router(config-line)#password cisco Router(config-line)#login Router(config-line)# -----------------setting vty password Router(config)#line vty 0 4 Router(config-line)#password cisco Router(config-line)#login Router(config-line)# -----------------*******INTERFACE_SETTINGS router network ip route

*********************BASIC_SWITCH_CONFIGURATION******************* ************General Use: show running-config show startup-config show version ***********Interface / Port Related: show interfaces

show ip interface brief show port-security show mac-address-table ***********Connectivity Related: show cdp neighbors show sessions Show ssh ping traceroute Configuration Management: enable configure terminal copy running-config startup-config erase startup-config delete vlan.dat reload Global Settings: hostname banner motd enable password enable secret Line Settings: line con

Line Settings: line con line vty login and password Interface Settings: interface type/number (vlan1) ip address ip default gateway speed / duplex switchport port-security *********************************do 2.3.5.4 (((((((((((((((((((((((((2.3.5.3))))))))))))))))))))) Use the following commands to create a VLAN using global configuration mode: Switch(config)#vlan vlan_number Switch(config-vlan)#name vlan_name

Switch(config-vlan)#exit Assign ports to be members of the VLAN. By default, all ports are initially memb ers of VLAN1. Assign ports one at a time or as a range. Use the following commands to assign individual ports to VLANs: Switch(config)#interface fa#/# Switch(config-if)#switchport access vlan vlan_number Switch(config-if)# exit Use the following commands to assign a range ports to VLANs: Switch(config)#interface range fa#/start_of_range - end_of_range Switch(config-if)#switchport access vlan vlan_number Switch(config-if)#exit

Trunking Switch(config)#interface fa(controler # / port #) Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk encapsulation dot1q to NO trunk To return a trunk port to an access port, issue either of the following commands : Switch(config)#interface fa(controler # / port #) Switch(config-if)#no switchport mode trunk or Switch(config-if)#switchport mode access **********************INTER-VLAN ROUTING********************* To configure inter-VLAN routing, use the following steps: 1. Configure a trunk port on the switch. Switch(config)#interface fa0/2 Switch(config-if)#switchport mode trunk 2. On the router, configure a FastEthernet interface with no IP address or subne t mask. Router(config)#interface fa0/1 Router(config-if)#no ip address Router(config-if)#no shutdown 3. On the router, configure one subinterface with an IP address and subnet mask for each VLAN. Each subinterface has an 802.1Q encapsulation. Router(config)#interface fa0/0.10 Router(config-subif)#encapsulation dot1q 10

Router(config-subif)#ip address 192.168.10.1 255.255.255.0 4. Use the following commands to verify the inter-VLAN routing configuration and functionality. Switch#show trunk Router#show ip interfaces Router#show ip interfaces brief Router#show ip route ======================================================================== *********************************Config VTP*************************** *******Config VTP offline Switch(config)#vtp domain champika Changing VTP domain name from NULL to champika Switch(config)#vtp mode client Setting device to VTP CLIENT mode. Switch(config)#vtp password password Setting device VLAN database password to password Switch(config)#end ********Verify the VTP configuration. Switch#sho vtp status VTP Version : 2 Configuration Revision : 0 Maximum VLANs supported locally : 255 Number of existing VLANs : 5 VTP Operating Mode : Client VTP Domain Name : champika VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0xEE 0x3F 0xE8 0x42 0xA1 0xB2 0xA5 0xD4 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00 Switch# **********Step 3: Reboot the switch. Switch#reload ============================================================================

Das könnte Ihnen auch gefallen