Router端口借用IP地址.docVIP

  • 1
  • 0
  • 约2.91千字
  • 约 4页
  • 2019-08-29 发布于山西
  • 举报
Router端口借用IP地址 端口借用IP地址 ?? 借用IP地址这种功能,其最主要的目的就是节省宝贵的IP地址资源。一个接口如果没有IP地址就无法生成路由,也就无法转发报文。所谓“借用IP地址”其实质就是:一个接口上没有配置IP地址,但是还想使用该接口,就向其它有IP地址的接口借一个IP地址过来,以使该接口能正常使用。如果被借用接口没有IP地址,则借用接口的IP地址为0.0.0.0,该功能通过ip unnumbered命令来实现。 ?? 需要注意的是: !--[if !supportLists]--(1)!--[endif]--借用方不能为以太网接口; !--[if !supportLists]--(2)!--[endif]--被借用方接口的地址本身不能为借用地址; !--[if !supportLists]--(3)!--[endif]--被借用方的地址可以借给多个接口; !--[if !supportLists]--(4)!--[endif]--Loopback的地址可被其它接口借用,但本身不能借用其它接口的地址。 ? 如下实验: ? 要求: ???? 1、使用OSPF路由协议,实现全网的互通。 ???? 2、设备RSR20-B上的S4/0端口借用其上F0/1端口的IP地址。 ???? 3、允许所有内网用户,访问外网PC4。 ? 配置如下: S3760-A#configure terminal S3760-A(config)#interface fastethernet 0/1 S3760-A(config-if)#no switchport S3760-A(config-if)#ip address 192.168.2.1 255.255.255.0 S3760-A(config-if)#no shut S3760-A(config-if)#exit S3760-A(config)#interface fastethernet 0/2 S3760-A(config-if)#no switchport S3760-A(config-if)#ip address 192.168.10.1 255.255.255.0 S3760-A(config-if)#no shut S3760-A(config-if)#exit S3760-A(config)#router ospf 1 S3760-A(config-router)#network 192.168.2.0 0.0.0.255 area 0 S3760-A(config-router)#network 192.168.10.0 0.0.0.255 area 0 S3760-A(config-router)#exit S3760-A(config)#???? ? RSR20-A(config)# RSR20-A(config)#interface fastethernet 0/1 RSR20-A(config-if)#ip address 192.168.2.2 255.255.255.0 RSR20-A(config-if)#no shut RSR20-A(config-if)#exit?? RSR20-A(config)#interface S4/0????? RSR20-A(config-if)#ip address 192.168.1.3 255.255.255.0 RSR20-A(config-if)#no shut RSR20-A(config-if)#exit RSR20-A(config-router)#network 192.168.2.0 0.0.0.255 area 0 RSR20-A(config-router)#network 192.168.1.0 0.0.0.255 area 0 RSR20-A(config-router)# ? RSR20-B#configure terminal RSR20-B(config)#interface fastethernet 0/1 RSR20-B(config-if)#ip address 192.168.1.2 255.255.255.0 RSR20-B(config-if)#ip nat inside RSR20-B(config-if)#no shut RSR20-B(config-if)#exit RSR20-B(config)#interface fastethernet 0/0 RSR20-B(config-if)#ip address 202.103.24.1 255.255.255.0 RSR20-B(config-if)#ip nat outside RSR20-B(config-if)

文档评论(0)

1亿VIP精品文档

相关文档