hostname HomeAgent ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface Ethernet0 ip address 172.16.100.1 255.255.255.0 ! interface Serial0 ip address 192.30.1.1 255.255.255.0 clockrate 4000000 ! router mobile ! router eigrp 1 redistribute mobile metric 10 2000 255 1 1500 network 1.0.0.0 network 172.16.0.0 network 192.30.1.0 auto-summary ! ip classless ip mobile home-agent ip mobile virtual-network 172.16.2.0 255.255.255.0 ip mobile host 172.16.2.1 virtual-network 172.16.2.0 255.255.255.0 ip mobile mobile-networks 172.16.2.1 network 148.33.0.0 255.255.0.0 ip mobile secure host 172.16.2.1 spi 100 key ascii cisco 外地代理配置 hostname ForeignAgent ! interface Ethernet0 ip address 192.30.2.1 255.255.255.0 ip irdp ip irdp maxadvertinterval 10 ip irdp minadvertinterval 7 ip irdp holdtime 30 ip mobile foreign-service ! interface Ethernet1 ip address 192.30.3.1 255.255.255.0 ip irdp ip irdp maxadvertinterval 10 ip irdp minadvertinterval 7 ip irdp holdtime 30 ip mobile foreign-service ! interface Serial0 ip address 192.30.1.2 255.255.255.0 ! router mobile ! router eigrp 1 network 192.30.1.0 network 192.30.2.0 network 192.30.3.0 auto-summary ! ip classless ip mobile foreign-agent care-of Serial0 移动路由器配置 hostname MobileRtr ! interface Ethernet0 ip address 148.33.2.129 255.255.255.192 ! interface Ethernet1 ip address 172.16.2.1 255.255.255.252 ip mobile router-service roam ip mobile router-service solicit no ip route-cache ! router mobile ! ip classless ip mobile secure home-agent 1.1.1.1 spi 100 key ascii cisco ip mobile router address 172.16.2.1 255.255.255.0 home-agent 1.1.1.1 路由器冗余