Router端口借用IP地址端口借用IP地址 借用IP地址这种功能,其最主要的目的就是节省宝贵的IP地址资源。一个接口如果没有IP地址就无法生成路由,也就无法转发报文。所谓“借用IP地址”其实质就是:一个接口上没有配置IP地址,但是还想使用该接口,就向其它有IP地址的接口借一个IP地址过来,以使该接口能正常使用。如果被借用接口没有IP地址,,该功能通过ipunnumbered命令来实现。 需要注意的是:<!--[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#configureterminalS3760-A(config)#0/1S3760-A(config-if)#noswitchportS3760-A(config-if)#-A(config-if)#noshutS3760-A(config-if)#exitS3760-A(config)#0/2S3760-A(config-if)#noswitchportS3760-A(config-if)#-A(config-if)#noshutS3760-A(config-if)#exitS3760-A(config)#routerospf1S3760-A(config-router)#-A(config-router)#-A(config-router)#exitS3760-A(config)# RSR20-A(config)#RSR20-A(config)#0/1RSR20-A(config-if)#-A(config-if)#noshutRSR20-A(config-if)#exit RSR20-A(config)#interfaceS4/0 RSR20-A(config-if)#-A(config-if)#noshutRSR20-A(config-if)#exitRSR20-A(config-router)#.
Router端口借用IP地址 来自淘豆网www.taodocs.com转载请标明出处.