为提高用户 整个网络规划:局域网PC通过DHCP获得地址,AR 18-32和3Com 3031配置VRRP和DHCP ,网段地址10.11.x.x/16,网关为VRRP虚拟路由器10.11.0.3。AR 18-32以太网地址10.11.0.1、3Com 3031以太网地址10.11.0.2。 VRRP:优先选路3Com 3031,配置其优先级为120;AR 18-32配置优先级为100;当线路故障的时候,优先级减50,这样当3Com 3031的ADSL线路故障的时候,其优先级为120-70=50,小于AR 18-32的优先级100,AR 18-32能够成为Master进行报文路由。 2.8.2 组网图 1.1.3 注视事项 配置路由器接入INTERNET 配置VRRP …… AR 18-32 #配置以太网接口 [1832]interface Ethernet 1/0 [1832-Ethernet1/0]ip address 10.11.0.1 16 [1832-Ethernet1/0]vrrp vrid 10 virtual-ip 10.11.0.3 [1832-Ethernet1/0]vrrp vrid 10 priority 100 #VRRP监控ADSL线路 [1832-Ethernet1/0]vrrp vrid 10 track 2/0 reduced 50 #配置DHCP服务 [1832]dhcp server ip-pool vrrp [1832-dhcp-pool-vrrp]network 10.11.0.0 mask 255.255.0.0 [1832-dhcp-pool-vrrp]gateway-list 10.11.0.3 [1832-dhcp-pool-vrrp]dns-list 10.72.66.36 10.72.66.37 [1832-dhcp-pool-vrrp]domain-name huawei-3com.com [1832-dhcp-pool-vrrp]nbns-list 10.153.0.11 #配置服务 [1832]acl number 3000 [1832-acl-adv-3000]rule 0 permit ip source 10.11.0.0 0.0.255.255 [1832]interface Dialer 0 [1832-Dialer0]nat outbound 3000 配置VRRP …… 3Com 3031 #配置以太网接口 [3031]interface Ethernet 1/0 [3031-Ethernet1/0]ip address 10.11.0.2 16 #配置VRRP服务 [3031-Ethernet1/0]vrrp vrid 10 virtual-ip 10.11.0.3 [3031-Ethernet1/0]vrrp vrid 10 priority 120 #VRRP监控ADSL线路 [3031-Ethernet1/0]vrrp vrid 10 track atm 2/0 reduced 50 #配置DHCP服务 [3031]dhcp server ip-pool vrrp [3031-dhcp-pool-vrrp]network 10.11.0.0 mask 255.255.0.0 [3031-dhcp-pool-vrrp]gateway-list 10.11.0.3 [3031-dhcp-pool-vrrp]dns-list 10.72.66.36 10.72.66.37 [3031-dhcp-pool-vrrp]domain-name huawei-3com.com [3031-dhcp-pool-vrrp]nbns-list 10.153.0.11 #配置NAT服务 [3031]acl number 3000 [3031-acl-adv-3000]rule 0 permit ip source 10.11.0.0 0.0.255.255 [3031]interface Dialer 0 [3031-Dialer0]nat outbound 3000 配置后验证VRRP状态是否正常 <3031>dis vrrp Virtual Ip Ping : Disable Ethernet1/0 | Virtual 10 state : Master Virtual IP : 10.11.0.3 Config Priority : 120 Run Priority : 120 Preempt : YES Delay Time : 0 Timer : 1 Auth Type : NONE Track IF : Atm2/0 Priority reduced : 50 <1832>dis vrrp Virtual Ip Ping : Disable Ethernet1/0 | Virtual Router 10 state : Backup Virtual IP : 10.11.0.3 Config Priority : 100 Run Priority : 100 Preempt : YES Delay Time : 0 Timer : 1 Auth Type : NONE Track IF : Atm2/0 Priority reduced : 50 ADSL线路故障后VRRP的状态 <3031>dis vrrp Virtual Ip Ping : Disable Ethernet1/0 | Virtual Router 10 state : Backup Virtual IP : 10.11.0.3 Config Priority : 120 Run Priority : 70 Preempt : YES Delay Time : 0 Timer : 1 Auth Type : NONE Track IF : Atm2/0 Priority reduced : 50 <1832>dis vrrp Virtual Ip Ping : Disable Ethernet1/0 | Virtual Router 10 state : Master Virtual IP : 10.11.0.3 Config Priority : 100 Run Priority : 100 Preempt : YES Delay Time : 0 Timer : 1 Auth Type : NONE Track IF : Atm2/0 Priority reduced : 50 配置说明 interface Atm2/0.1 p2p atm-link check pvc 1/35 oam frequency 10 |