分类: 系统运维
2011-12-07 15:53:50
ISP。。。。。。。的配置
en
conf t
domain loo
line 0
exec-t 0 0
logg s
exit
ho ISP
int e0/0
ip add 192.168.1.2 255.255.255.0
no sh
int e0/1
ip add 192.168.2.2 255.255.255.0
no sh
int l1
ip add 8.8.8.8 255.255.255.0
no sh
exit
router ospf 1
net 0.0.0.0 0.0.0.0 a 0
end
-------------------------------------------------------------------------------------------
R1上的配置 。。。。。。。。。
en
conf t
no ip domain loo
line 0
exec-t 0 0
logg s
exit
ho R1
int e0/0
ip add 192.168.1.1 255.255.255.0
no sh
int e0/1
ip add 192.168.10.1 255.255.255.0
no sh
stand 100 ip 192.168.10.254
stand 100 pri 200
stand 100 pree
stand 100 trac e0/0 60
exit
router ospf 1
net 0.0.0.0 0.0.0.0 a 0
end
--------------------------------------------------------------------------------------------
R2上的配置
en
conf t
no ip domain loo
line 0
exec-t 0 0
logg s
exit
ho R2
int e0/1
ip add 192.168.2.1 255.255.255.0
no sh
int e0/2
ip add 192.168.10.2 255.255.255.0
no sh
stand 100 ip 192.168.10.254
stand 100 pri 150
stand 100 pree
exit
router ospf 1
net 0.0.0.0 0.0.0.0 a 0
end
--------------------------------------------------------------------------------------------
思路:
1、加入HSRP备份组
2、配置接口优先级
3、配置占先权
-------------------------------------------------------------------------------------------