思科路由器配置rip

 

代码:

R4:
enable
config t
hostname R4
int fa0/0
no shutdown
int fa0/0.1
enca dot1q 1
ip address 192.168.1.33 255.255.255.224
no shutdown
exit
int fa0/0.2
enca dot1q 2
ip address 192.168.1.65 255.255.255.224
no shutdown
exit
int fa0/0.3
enca dot1q 3
ip address 192.168.1.97 255.255.255.224
no shutdown
exit
int s1/2
ip address 192.168.47.1 255.255.255.0
no shutdown
ip summary-address rip 192.168.1.0 255.255.255.0
exit
int s1/1
ip address 192.168.45.1 255.255.255.0
no shutdown
exit
router rip
version 2
no auto-summary
network 192.168.1.32
network 192.168.1.64
network 192.168.1.96
network 192.168.47.0
network 192.168.45.0
exit
key chain 45
key 1
key-string miwen
exit
exit
int s1/1
ip rip authen mode md5
ip rip authen key-chain 45
ip rip triggered
end

R5:
enable
config t
hostname R5
int fa0/0
ip add 192.168.5.1 255.255.255.0
no shutdown
exit
int s1/0
ip address 192.168.45.2 255.255.255.0
no shutdown
exit
int s1/2
ip address 192.168.57.1 255.255.255.0
no shutdown
exit
router rip
version 2
network 192.168.5.0
network 192.168.57.0
network 192.168.45.0
passive-interface fa0/0
exit
key chain 45
key 1
key-string miwen
exit
exit
int s1/0
ip rip authen mode md5
ip rip authen key-chain 45
ip rip triggered
end


R7:
enable
config t
hostname R7
int s1/3
ip address 192.168.47.2 255.255.255.0
no shutdown
exit
int s1/4
ip address 192.168.57.2 255.255.255.0
no shutdown
exit
int s1/5
ip address 192.168.67.2 255.255.255.0
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 s1/5
router rip
version 2
network 192.168.47.0
network 192.168.57.0
network 192.168.67.0
default-information originate
exit
key chain 67
key 1
key-string mingwen
exit
exit
int s1/5
ip rip authen mode text
ip rip authen key-chain 67
ip rip triggered
end

R6:
enable
config t
hostname R6
int s1/2
ip address 192.168.67.1 255.255.255.0
no shutdown
exit
int lo1
ip address 192.168.6.1 255.255.255.0
no shutdown
exit
router rip
version 2
network 192.168.67.0
exit
key chain 67
key 1
key-string mingwen
exit
exit
int s1/2
ip rip authen mode text
ip rip authen key-chain 67
ip rip triggered
exit
ip route 0.0.0.0 0.0.0.0 lo1
end

 

 

 

你可能感兴趣的:(路由器,休闲,rip,思科,思科路由器)