Cnfan.net中国网络
IT网络技术专家
Cisco技术
 最新专题: CISCO路由器配置手册   Cisco IOS Cookbook 中文精简版   思科IOS技术专题   专题 | 分类 | 投稿 | 搜索
 Cisco技术首页 | 思科动态 | 路由与交换 | 配置实例 | 思科安全 | 思科产品 | 综合 | 思科存储 | NetFlow

Cisco IOS Cookbook 中文精简版第二十四章移动IP

  • 2007-12-21 21:45:11  作者:NeoShis  来源:互联网  浏览次数:29  文字大小:【】【】【
简介:24.1. 本地移动性(Local Area Mobility) mal>提问 配置本地移动性来实现设备的网络漫游 回答 归属地路由器HomeRouter RouterHome#configure terminal Enter configuration commands, one per line. End ...

关键字: Cisco IOS Cookbook 中文精简版 第二十四章 移动IP

24.1. 本地移动性(Local Area Mobility)
mal>提问 配置本地移动性来实现设备的网络漫游
回答
归属地路由器HomeRouter
RouterHome#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterHome(config)#interface FastEthernet0/0
RouterHome(config-if)#ip address 192.168.10.1 255.255.255.0
RouterHome(config-if)#ip proxy-arp
RouterHome(config-if)#ip mobile arp
RouterHome(config-if)#exit
RouterHome(config)#router eigrp 99
RouterHome(config-router)#network 192.168.10.0
RouterHome(config-router)#default-metric 10000 10 255 1 1500
RouterHome(config-router)#redistribute mobile
RouterHome(config-router)#no auto-summary
RouterHome(config-router)#exit
RouterHome(config)#end
RouterHome#
访问地路由器ForeignRouter
RouterForeign#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterForeign(config)#interface FastEthernet0/0
RouterForeign(config-if)#ip address 192.168.110.1 255.255.255.0
RouterForeign(config-if)#ip proxy-arp
RouterForeign(config-if)#ip mobile arp
RouterForeign(config-if)#exit
RouterForeign(config)#router eigrp 99
RouterForeign(config-router)#network 192.168.100.0
RouterForeign(config-router)#default-metric 10000 10 255 1 1500
RouterForeign(config-router)#redistribute mobile
RouterForeign(config-router)#no auto-summary
RouterForeign(config-router)#exit
RouterForeign(config)#end
RouterForeign#
注释 Local Area Mobility是思科通过Proxy Arp来实现的一种简单移动IP,只是作为没有DHCP的暂时替代方案,当访问地使用ARP查到了访问设备以后会在路由表生成一条主机路由,然后此主机路由会通过路由协议被归属地所学到,比如访问地的ARP和路由表
RouterForeign#show ip arp FastEthernet0/0
Protocol Address          Age (min) Hardware Addr   Type   Interface
Internet 192.168.110.1           -   000e.d7d6.1060 ARPA   FastEthernet0/0
Internet 192.168.10.109          1   00b0.64ab.0580 ARPA   FastEthernet0/0
Internet 192.168.110.9          21   0000.0c75.c684 ARPA   FastEthernet0/0
RouterForeign#
RouterForeign#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
C    192.168.110.0/24 is directly connected, FastEthernet0/0
     192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
M       192.168.10.109/32 [3/1] via 192.168.10.109, 00:17:59, FastEthernet0/0
D       192.168.10.0/24 [90/2172416] via 192.168.55.11, 00:29:43, Serial0/0
C    192.168.55.0/24 is directly connected, Serial0/0
RouterForeign#
归属地通过EIGRP学到
RouterHome#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
D    192.168.110.0/24 [90/2172416] via 192.168.55.12, 00:31:43, Serial0/0
     192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
D EX    192.168.10.109/32 [170/2172416] via 192.168.55.12, 00:18:19, Serial0/0
C       192.168.10.0/24 is directly connected, FastEthernet0/0
C    192.168.55.0/24 is directly connected, Serial0/0
RouterHome#
[1] [2]

  <欢迎投稿>  <论坛讨论>
 »相关文章  »论坛新贴
精彩文章 活动资讯 今日头条