Sunteți pe pagina 1din 8

Sales VLAN 10 - IP 192.168.10.0/24 Engineering VLAN 20 - IP 192.168.20.0/24 Administration VLAN 30 - IP 192.168.30.0/24 Management VLAN 99 - IP 192.168.99.0/24 1. Switch>enable Switch#delete flash:vpn.

dat Delete filename [vpn.dat]? Delete flash:/vpn.dat? [confirm] %Error deleting flash:/vpn.dat (No such file or directory) Switch#erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [con firm] [OK] Erase of nvram: complete %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram Switch#reload Proceed with reload? [confirm] 2. Switch>enable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S1 S1(config)#line con 0 S1(config-line)#logging synchronous S1(config-line)#password cisco S1(config-line)#login S1(config-line)#line vty 0 15 S1(config-line)#password cisco S1(config-line)#login S1(config-line)#exit S1(config)#enable secret cisco S1(config)#no ip domain-lookup S1(config)#ip default-gateway 192.168.99.1 S1(config)#int range fa0/1-24 S1(config-if-range)#shutdown S1(config-if-range)#end S1# %SYS-5-CONFIG_I: Configured from console by console S1#wr Building configuration... [OK] 3. S2#conf t Enter configuration commands, one per line. End with CNTL/Z. S2(config)#int range fa0/6, fa0/11, fa0/18 S2(config-if-range)#switchport mode access S2(config-if-range)#no shutdown 4. S1#conf t Enter configuration commands, one per line. End with CNTL/Z. S1(config)#vtp mode server Device mode already VTP SERVER. S1(config)#vtp domain Widgets

Changing VTP domain name from NULL to Widgets S1(config)#vtp password cisco Setting device VLAN database password to cisco S3#conf t Enter configuration commands, one per line. End with CNTL/Z. S3(config)#vtp mode client Setting device to VTP CLIENT mode. S3(config)#vtp domain Widgets Changing VTP domain name from NULL to Widgets S3(config)#vtp password cisco Setting device VLAN database password to cisco S2#conf t Enter configuration commands, one per line. End with CNTL/Z. S2(config)#vtp mode client Setting device to VTP CLIENT mode. S2(config)#vtp domain Widgets Changing VTP domain name from NULL to Widgets S2(config)#vtp password cisco Setting device VLAN database password to cisco 5. S1(config)#int range fa0/1-5 S1(config-if-range)#switchport mode trunk S1(config-if-range)#switchport trunk native vlan 99 S1(config-if-range)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to down %LINK-5-CHANGED: Interface FastEthernet0/2, changed state to down %LINK-5-CHANGED: Interface FastEthernet0/3, changed state to down %LINK-5-CHANGED: Interface FastEthernet0/4, changed state to down %LINK-5-CHANGED: Interface FastEthernet0/5, changed state to down S1(config-if-range)#end S1# %SYS-5-CONFIG_I: Configured from console by console 6. S1#conf t Enter configuration commands, one per line. End with CNTL/Z. S1(config)#vlan 99 S1(config-vlan)#name management S1(config-vlan)#exit S1(config)#vlan 10 S1(config-vlan)#name sales S1(config-vlan)#exit S1(config)#vlan 20 S1(config-vlan)#name engineering S1(config-vlan)#exit S1(config-vlan)#vlan 30 S1(config-vlan)#name administration S1(config-vlan)#exit 7. S3#show vlan brief

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gig1/1 Gig1/2 10 sales active 20 engineering active 30 administration active 99 management active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active 8. S1(config)#int vlan 99 S1(config-if)# %LINK-5-CHANGED: Interface Vlan99, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to up S1(config-if)#ip address 192.168.99.2 255.255.255.0 S1(config-if)#end S2(config)#int vlan 99 S2(config-if)# %LINK-5-CHANGED: Interface Vlan99, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to up S2(config-if)#ip address 192.168.99.3 255.255.255.0 S2(config-if)#end S3(config)#int vlan 99 %LINK-5-CHANGED: Interface Vlan99, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to up S3(config-if)# S3(config-if)#ip address 192.168.99.4 255.255.255.0 S3(config-if)#end 9. S2#conf t Enter configuration commands, one per line. End with CNTL/Z. S2(config)#int range fa0/6-10 S2(config-if-range)#switchport access vlan 10 S2(config-if-range)#interface range fa0/11-17 S2(config-if-range)#switchport access vlan 20 S2(config-if-range)#interface range fa0/18-24 S2(config-if-range)#switchport access vlan 30 S2(config-if-range)#end S2# %SYS-5-CONFIG_I: Configured from console by console S2#wr Building configuration...

[OK] 10. Router#erase startup Erasing the nvram filesystem will remove all configuration files! Continue? [con firm] [OK] Erase of nvram: complete %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram Router#reload Proceed with reload? [confirm] 11. Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#enable secret cisco Router(config)#hostname MEL MEL(config)#no ip domain-lookup MEL(config)#line con 0 MEL(config-line)#logging synchronous MEL(config-line)#password cisco MEL(config-line)#login MEL(config-line)#line vty 0 4 MEL(config-line)#password cisco MEL(config-line)#login MEL(config-line)#end MEL# %SYS-5-CONFIG_I: Configured from console by console MEL#wr Building configuration... [OK] 12. MEL#conf t Enter configuration commands, one per line. End with CNTL/Z. MEL(config)#int fa0/0 MEL(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state t o up MEL(config-if)# MEL(config-if)#int fa0/0.10 MEL(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed stat e to up MEL(config-subif)#encapsulation dot1q 10 MEL(config-subif)#ip address 192.168.10.1 255.255.255.0 MEL(config-subif)#int fa0/0.20 MEL(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed stat e to up

MEL(config-subif)#encapsulation dot1q 20 MEL(config-subif)#ip address 192.168.20.1 255.255.255.0 MEL(config-subif)#int fa0/0.30 %LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed stat e to up MEL(config-subif)# MEL(config-subif)#encapsulation dot1q 30 MEL(config-subif)#ip address 192.168.30.1 255.255.255.0 MEL(config-subif)#int fa0/0.99 %LINK-5-CHANGED: Interface FastEthernet0/0.99, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.99, changed stat e to up MEL(config-subif)# MEL(config-subif)#encapsulation dot1q 99 native MEL(config-subif)#ip address 192.168.99.1 255.255.255.0 MEL(config-subif)#end MEL# %SYS-5-CONFIG_I: Configured from console by console MEL#wr Building configuration... [OK] 13. MEL#conf t Enter configuration commands, one per line. End with CNTL/Z. MEL(config)#int serial 0/1/0 MEL(config-if)#ip address 192.168.0.2 255.255.255.252 MEL(config-if)#clock rate 64000 MEL(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/1/0, changed state to down 14. Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname DATA DATA(config)#enable secret cisco DATA(config)#line con 0 DATA(config-line)#logging synchronous DATA(config-line)#password cisco DATA(config-line)#login DATA(config-line)#line vty 0 4 DATA(config-line)#password cisco DATA(config-line)#login DATA(config-line)#end DATA(config)#int serial 1/0 DATA(config-if)#ip address 192.168.0.1 255.255.255.252 DATA(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial1/0, changed state to up DATA(config-if)end

DATA#conf t Enter configuration commands, one per line. End with CNTL/Z. DATA(config)#int serial 1/1 DATA(config-if)#clock rate 64000 DATA(config-if)#ip address 192.168.0.5 255.255.255.252 DATA(config-if)#no shut %LINK-5-CHANGED: Interface Serial1/1, changed state to down DATA(config-if)end DATA# %SYS-5-CONFIG_I: Configured from console by console DATA#wr Building configuration... [OK] 15. Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname SYD SYD(config)#enable secret cisco SYD(config)#no ip domain-lookup SYD(config)#line con 0 SYD(config-line)#logging syn SYD(config-line)#logging synchronous SYD(config-line)#password cisco SYD(config-line)#login SYD(config-line)#line vty 0 4 SYD(config-line)#password cisco SYD(config-line)#login SYD(config-line)#exit SYD(config)#int serial 1/1 SYD(config-if)#ip address 192.168.0.6 255.255.255.252 SYD(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial1/1, changed state to up SYD(config-if)# SYD(config-if)#int serial 192.168 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up SYD(config-if)#int serial 1/0 SYD(config-if)#ip address 192.168.0.10 255.255.255.252 SYD(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial1/0, changed state to down SYD(config-if)#end SYD# %SYS-5-CONFIG_I: Configured from console by console 16. MEL(config)#int serial 0/1/1 MEL(config-if)#ip address 192.168.0.9 255.255.255.252 MEL(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/1/1, changed state to up MEL(config-if)# MEL(config-if)#end

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/1, changed state to up 17. Switch>enable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname DS DS(config)#enable secret cisco DS(config)#no ip domain-lookup DS(config)#ip default-gateway 192.168.199.1 DS(config)#line con 0 DS(config-line)#logging synchronous DS(config-line)#password cisco DS(config-line)#login DS(config-line)#line vty 0 15 DS(config-line)#password cisco DS(config-line)#login DS(config-line)#exit DS(config)#end DS# %SYS-5-CONFIG_I: Configured from console by console DS#wr Building configuration... [OK] 18. DS#conf t Enter configuration commands, one per line. End with CNTL/Z. DS(config)#vlan 10 DS(config-vlan)#name sales_server DS(config-vlan)#exit DS(config)#vlan 20 DS(config-vlan)#name eng_server DS(config-vlan)#exit DS(config)#vlan 30 DS(config-vlan)#name admin_server DS(config-vlan)#exit DS(config)#int fa0/1 DS(config-if)#switchport mode trunk DS(config-if)#switchport trunk native vlan 99 DS(config-if)#no shutdown DS(config-if)#exit DS(config)#vlan 99 DS(config-vlan)#name management DS(config-vlan)#exit DS(config)#int vlan 99 DS(config-if)# %LINK-5-CHANGED: Interface Vlan99, changed state to up DS(config-if)#ip address DS(config-if)#exit DS(config)#int fa0/6 DS(config-if)#switchport DS(config-if)#int fa0/11 DS(config-if)#switchport DS(config-if)#int fa0/18 DS(config-if)#switchport 192.168.199.2 255.255.255.0 access vlan 10 access vlan 20 access vlan 30

DS(config-if)#end DS# %SYS-5-CONFIG_I: Configured from console by console 19. DATA(config-if)#int fa0/0.10 DATA(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed stat e to up DATA(config-subif)#encapsulation dot1q 10 DATA(config-subif)#ip address 192.168.110.1 255.255.255.0 DATA(config-subif)#int fa0/0.20 %LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed stat e to up DATA(config-subif)# DATA(config-subif)#encapsulation dot1q 20 DATA(config-subif)#ip address 192.168.120.1 255.255.255.0 DATA(config-subif)#int fa0/0.30 %LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed stat e to up DATA(config-subif)# DATA(config-subif)#encapsulation dot1q 30 DATA(config-subif)#ip address 192.168.130.1 255.255.255.0 DATA(config-subif)#int fa0/0.99 %LINK-5-CHANGED: Interface FastEthernet0/0.99, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.99, changed stat e to up DATA(config-subif)#encapsulation dot1q 99 native DATA(config-subif)#ip address 192.168.199.1 255.255.255.0 DATA(config-subif)#end DATA# %SYS-5-CONFIG_I: Configured from console by console 20. DATA(config)#ip DATA(config)#ip DATA(config)#ip DATA(config)#ip MEL(config)#ip MEL(config)#ip MEL(config)#ip MEL(config)#ip route route route route route route route route 192.168.10.0 192.168.20.0 192.168.30.0 192.168.99.0 192.168.110.0 192.168.120.0 192.168.130.0 192.168.199.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 serial serial serial serial serial serial serial serial 1/0 1/0 1/0 1/0 0/1/0 0/1/0 0/1/0 0/1/0

S-ar putea să vă placă și