2018-12-08 简单动态路由


di

第一个路由:

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

第二个路由:

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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容