Sie sind auf Seite 1von 4

Setting Router 1 Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1 R1(config)#int fa 0/0 R1(config-if)#ip add 192.168.10.1 255.255.255.0 R1(config-if)#no shut R1(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#do wr Building configuration... [OK] Setting Router 2 Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2 R2(config)#int fa 0/0 R2(config-if)#ip add 192.168.10.2 255.255.255.0 R2(config-if)#no shut R2(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#do wr Building configuration...

[OK] Setting Router 3

Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R3 R3(config)#int fa 0/0 R3(config-if)#ip add 192.168.10.3 255.255.255.0 R3(config-if)#no shut R3(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R3(config-if)#do wr Building configuration... [OK]

Setting Switch 1 Switch>enable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SW1 SW1(config)#vlan 10 SW1(config-vlan)#name vlan10 SW1(config-vlan)#vlan 20 SW1(config-vlan)#name vlan20 SW1(config-vlan)#exit SW1(config)#int fa 0/1 SW1(config-if)#sw mode acc SW1(config-if)#sw acc vlan 10 SW1(config-if)#no shut SW1(config-if)#int fa 0/2 SW1(config-if)#sw mode acc SW1(config-if)#sw acc vlan 10 SW1(config-if)#no shut SW1(config-if)#int fa 0/3 SW1(config-if)#sw mode trunk SW1(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up SW1(config-if)#do wr Building configuration... [OK] Setting Switch 2

Switch>enable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SW2 SW2(config)#vlan 10 SW2(config-vlan)#name vlan10 SW2(config-vlan)#vlan 20 SW2(config-vlan)#name vlan20 SW2(config-vlan)#exit SW2(config)#int fa 0/1 SW2(config-if)#sw mode acc SW2(config-if)#sw acc vlan 10 SW2(config-if)#no shut SW2(config-if)#int fa 0/3 SW2(config-if)#sw mode trunk SW2(config-if)#no shut SW2(config-if)#do wr Building configuration... [OK] Lakukan Ping dari Router R1 ke R3.

Lakukan Ping dari Router R2 ke R3

Das könnte Ihnen auch gefallen