Sei sulla pagina 1di 2

Router>enable Router#configure terminal Router (config )#hostname ....

host (config )# line console 0 host (config-line )#password cisco host (config-line )#login host (config )#line vty 0 4 host (config-line )#password cisco host (config-line )#login host (config )#interface fastethernet0/0 host (config-if )# ip address 192.168.1.1 2xx.xxx...... host (config-if )# no shut down host (config-if)#description connection to host1 host (config-if)#interface fa0/1 host (config-if)#description connection to switch1 host (config-if )#ip address 192.168.2.165 255.255.255.0 host (config-if )# no shut down host (config-if)#description connection to switch2 host (config-if )#interface serial 0/0/.. host (config-if )#ip address 192.168.2.1 255.255.255.0 host (config-if )# no shut down host (config-if )#clock rate 64000 host (config-if )#no shutdown host (config-if )# router rip host (config-if )#version 2 host (config-if )#network 192.168.2.0 host (config-if )#network 192.168.3.0 host (config-if )#end host# S1# configure terminal S1(config)#interface fastethernet 0/18 S1(config-if)# no shutdown S1(config-if)#exit S1# S1 #configure terminal S1 (config)#hostname ? S1 (config)#exit S1 (config)#line con 0 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 S# S1 (config)#vlan 99 S1 (config-vlan)#name user S1 (config-vlan)#exit S1 (config)#interface vlan 99 S1 (config-if)#ip address 172.17.99.11 255.255.255.0 S1 (config-if)#no shutdown %LINK-5-CHANGED: Interface Vlan99, changed state to up S1(config-if)#exit S1 (config)#interface fa0/18 S1(config-if)#switchport access vlan 99 S1 (config-if)#end

S1 S1 S1 S1 S1 S1 S2 S2 S2 S2 S2

# (config)#interface range fa0/1-5 (config-if-range)#switchport mode trunk (config-if-range)#switchport trunk native vlan 99 (config-if-range)#no shutdown (config-if-range)#end (config)# interface range fa0/1-5 (config-if-range)#switchport mode trunk (config-if-range)#switchport trunk native vlan 99 (config-if-range)#no shutdown (config-if-range)#end

S3 (config)# interface range fa0/1-5 S3 (config-if-range)#switchport mode trunk S3 (config-if-range)#switchport trunk native vlan 99 S3 (config-if-range)#no shutdown S3(config-if-range)#end

Potrebbero piacerti anche