路由交换配制

RIP2配置文件
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.3 255.255.255.192
no shut
exit
int e0/1
ip add 192.168.0.66 255.255.255.192
no shut
exit
router rip
version 2
no auto-summary
network 192.168.0.66
network 192.168.0.3
end
write

r2配置
enable
conf t
host r2
no ip do lo
line c 0
logg sy
exit
int e0/1
ip add 192.168.0.65 255.255.255.192
no shut
exit
int e0/2
ip add 192.168.0.193 255.255.255.192
no shut
exit
router rip
version 2
no auto-summ
network 192.168.0.193
network 192.168.0.65
end
write
r3配置
enable
conf t
host r3
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.129 255.255.255.192
no shut
exit
int e0/2
ip add 192.168.0.194 255.255.255.192
no shut
exit
router rip
version 2
no auto-summ
network 192.168.0.129
network 192.168.0.194
end
write
 
静态路由配置文件
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.3 255.255.255.192
no shut
exit
int e0/1
ip add 192.168.0.66 255.255.255.192
no shut
exit
ip route 192.168.0.128 255.255.255.192 192.168.0.65
ip route 192.168.0.192 255.255.255.192 192.168.0.65
ip route 0.0.0.0 0.0.0.0 192.168.0.65
end
write

r2配置
enable
conf t
host r2
no ip do lo
line c 0
logg sy
exit
int e0/1
ip add 192.168.0.65 255.255.255.192
no shut
exit
int e0/2
ip add 192.168.0.193 255.255.255.192
no shut
exit
ip route 192.168.0.0 255.255.255.192 192.168.0.66
ip route 192.168.0.128 255.255.255.192 192.168.0.194
end
write

r3配置
enable
conf t
host r3
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.129 255.255.255.192
no shut
exit
int e0/2
ip add 192.168.0.194 255.255.255.192
no shut
exit
ip route 192.168.0.0 255.255.255.192 192.168.0.193
ip route 0.0.0.0 0.0.0.0 192.168.0.193
ip route 192.168.0.64 255.255.255.192 192.168.0.193
exit
write

你可能感兴趣的:(职场,休闲,交换,“路由,配制”)