路由重发布配置代码

Router>en
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R4
R4(config)#int lo4
%LINK-5-CHANGED: Interface Loopback4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback4, changed state to up
R4(config-if)#ip add 192.168.4.1 255.255.255.0
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#int s0/1/0
R4(config-if)#ip add 192.168.45.4 255.255.255.0
R4(config-if)#clock rate 56000
R4(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down
R4(config-if)#exit
R4(config)#router rip
R4(config-router)#net 192.168.4.0
R4(config-router)#net 192.168.45.0
R4(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
R4#

 

Router>en
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R5
R5(config)#int s0/1/1
R5(config-if)#ip add 192.168.45.5 255.255.255.0
R5(config-if)#no shut
R5(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/1, changed state to up
R5(config-if)#exit
R5(config)#int s0/1/0
R5(config-if)#ip add 192.168.56.5 255.255.255.0
R5(config-if)#clock rate 56000
R5(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down
R5(config-if)#exit
R5(config)#router rip
R5(config-router)#net 192.168.45.0
R5(config-router)#redistribute eigrp 4567 metric 10
R5(config-router)#exit
R5(config)#router eigrp 4567
R5(config-router)#net 192.168.56.0
R5(config-router)#redistribute rip metric 1544 20000 255 1 1500
R5(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
R5#


Router>en
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R6
R6(config)#int s0/1/1
R6(config-if)#ip add 192.168.56.6 255.255.255.0
R6(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up
R6(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/1, changed state to up
R6(config-if)#exit
R6(config)#int s0/1/0
R6(config-if)#ip add 192.168.67.6 255.255.255.0
R6(config-if)#clock rate 56000
R6(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down
R6(config-if)#router eigrp 4567
R6(config-router)#net 192.168.56.0
R6(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 4567: Neighbor 192.168.56.5 (Serial0/1/1) is up: new adjacency
R6(config-router)#redistribute ospf 4567 metric 1544 20000 255 1 1500
R6(config-router)#exit
R6(config)#router ospf 4567
R6(config-router)#net 192.168.67.0 0.0.0.255 area 0
R6(config-router)#redistribute eigrp 4567 subnets
R6(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
R6#


Router>en
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R7
R7(config)#int lo7
%LINK-5-CHANGED: Interface Loopback7, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback7, changed state to up
R7(config-if)#ip add 192.168.7.1 255.255.255.0
R7(config-if)#no shut
R7(config-if)#exit
R7(config)#int s0/1/1
R7(config-if)#ip add 192.168.67.7 255.255.255.0
R7(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up
R7(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/1, changed state to up
R7(config-if)#exit
R7(config)#router ospf 4567
R7(config-router)#net 192.168.7.0 0.0.0.255 area 0
R7(config-router)#net 192.168.67.0 0.0.0.255 area 0
R7(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
R7#
00:02:39: %OSPF-5-ADJCHG: Process 4567, Nbr 192.168.67.6 on Serial0/1/1 from LOADING to FULL, Loading Done
 

你可能感兴趣的:(protocol,enter,NetWork,memory,路由)