Cau Hinh Route Va Switch

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Cau hinh route 0 voi switch Router>enable Router#conf t Enter configuration commands, one per line.

End with CNTL/Z. Router(config)#int fa0/0 Router(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 to up Router(config-if)#int fa0/2-9 ^ % Invalid input detected at '^' marker. Router(config-if)#encap Router(config-if)#encapen Router(config-if)#en Router(config-if)#encapsu Router(config-if)#encapsulation dot1q 10 ^ % Invalid input detected at '^' marker. Router(config-if)#ip add 192.168.10.0 % Incomplete command. Router(config-if)#ip add 192.168.10.0 255.255.255.0 Bad mask /24 for address 192.168.10.0 Router(config-if)#exit Router(config)#int fa0/0 Router(config-if)#no shutdown Router(config-if)#int fa0/0.10 %LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed state to up Router(config-subif)#en Router(config-subif)#encapsulation dot1q 10 Router(config-subif)#ip add 192.168.10.1 255.255.255.0 Router(config-subif)#exit Router(config)#int fa0/0.20 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed state to up en Router(config-subif)#encapsulation dot1q 20 Router(config-subif)#ip add 192.168.20.1 255.255.255.0 Router(config-subif)#exit Router(config)#ping 192.168.10.1 ^ % Invalid input detected at '^' marker. Router(config)#exit Cau hinh route 0 voi internet Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int s0/0/0 Router(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/0, changed state to up Router(config-if)#clock rate 2000000 Router(config-if)#ip add 192.1 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up ^ % Invalid input detected at '^' marker. Router(config-if)#ip add 2.2.2.1 255.255.255.0 Router(config-if)#exit Router(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0 Router(config)#^Z Cau hinh route 1 ( internet) Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int s0/0/0 Router(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down Router(config-if)#clock rate 2000000 Router(config-if)#ip add 2.2.2.2 255.255.255.0 Router(config-if)#exit Router(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0 Router(config)#^Z

You might also like