2018-12-08 簡(jiǎn)單動(dòng)態(tài)路由


di

第一個(gè)路由:

Router>en

Router#conf t

Enter configuration commands, one per line.? End with CNTL/Z.

Router(config)#int f 0/0

Router(config-if)#no shut

%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)#ip add 172.16.1.1 255.255.255.0

Router(config-if)#exit

Router(config)#int f 0/1

Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#ip add 172.16.2.1 255.255.255.0

Router(config-if)#exit

Router(config)#int e 1/0

Router(config-if)#no shut

Router(config-if)#

%LINK-5-CHANGED: Interface Ethernet1/0, changed state to up

Router(config-if)#ip add 192.168.1.1 255.255.255.0

Router(config-if)#exit

Router(config)#router rip

Router(config-router)#v 2

Router(config-router)#ne 172.16.0.0

Router(config-router)ne192.168.1.0

Router(config-router)#no au

第二個(gè)路由:

Router>en

Router#conf t

Enter configuration commands, one per line.? End with CNTL/Z.

Router(config)#int f 0/0

Router(config-if)#no shut

%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)#ip add 10.1.1.1 255.255.255.0

Router(config-if)#exit

Router(config)#int f 0/1

Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#ip add 10.2.2.1 255.255.255.0

Router(config-if)#exit

Router(config)#int e 1/0

Router(config-if)#no shut

%LINK-5-CHANGED: Interface Ethernet1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to up

Router(config-if)#ip add 192.168.1.2 255.255.255.0

Router(config-if)#exit

Router(config)#router rip

Router(config-router)#v 2

Router(config-router)#ne 10.0.0.0

Router(config-router)#ne 192.168.1.0

Router(config-router)#no au

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容