【路由器动态ip获取不了】IBM路由器动态IP地址的配置举例

IBM认证复习指导 2021-07-03 网络整理 可可

【shitiku.jxxyjl.com--IBM认证复习指导】

        在实际的网络环境中经常需要通过路由器拨号到isp,这时路由器的ip 地址有isp采用dhcp的方式给定。ibm路由器在mrs 3.3版本之后提供了对于动态ip地址的支持。
   动态地址具有以下3个方面的作用:
    提供了路由器通过ipcp取得ppp端口ip地址的能力。
    如果ipcp同时提供 dns 的信息,dhcp客户端也可以得到这些信息。
    动态更新ip 访问控制,这样定义的filter就可以用于nat/napt。
   动态ip的功能使 ibm 路由器具备连接isp并从isp取得ip地址的能力,而不必事先知道ip地址

   动态ip地址的设置
   我们下面将通过一个例子来说明动态ip地址的具体配置。在这个例子中我们将同时配置 isp端和客户端的路由器。动态 ip 将在客户端的路由器上配置,客户端路由器会从isp端的路由器取得公网的ip地址。并且客户端路由器也激活了dhcp服务器和nat功能。

   网络拓扑图如下:

   isp 端路由器的配置
   设置系统名为isp。
   添加token ring 接口。

   config (only)>set hostname isp
   host name updated successfully
   config (only)>add device tr-2
   device slot #(1-4) [1]?
   device port #(1-2) [1]?
   adding 2-port ibm token ring device in slot 1 port 1 as interface #4
   use "net 4" to configure 2-port ibm token ring parameters

   设置 wan 口,使其支持远程拨入。
   在wan口上添加dial-in circuit。

   config (only)>set data v34 2
   config (only)>add device dial-in
   enter the number of ppp dial-in circuit interfaces [1]?
   adding device as interface 5
   defaulting data-link protocol to ppp
   base net for this circuit [0]? 2
   enable as a multilink ppp link? [no]
   disabled as a multilink ppp link.
   add more dial circuit interface(s)?(yes or [no]):
   use "set data-link" command to change the data-link protocol
   use "net " command to configure dial circuit parameters

   添加远程拨入的ppp用户 "aaa"。

   onfig (only)>add ppp-user
   enter name: []? aaa
   password:
   enter again to verify:
   allow inbound access for user? (yes, no): [yes]
   will user be tunneled? (yes, no): [no]
   is this a "dials" user? (yes, no): [yes]
   type of route? (hostroute, netroute): [hostroute]
   number of days before account expires [0-1000] [0]?
   number of grace logins allowed after an expiration [0-100] [0]?
   ip address: [0.0.0.0]?
   enter hostname: []?
   allow virtual connections? (yes, no): [no]
   give user default time allotted ? (yes, no): [yes]
   enable callback for user? (yes, no): [no]
   will user be able to dial-out ? (yes, no): [no]
   set ecp encryption key for this user? (yes, no): [no]
   disable user ? (yes, no): [no]
   ppp user name: aaa
   user ip address: interface default
   netroute mask: 255.255.255.255
   hostname:
   virtual conn: disabled
   time alotted: box default
   callback type: disabled
   dial-out: disabled
   status: enabled
   account expiry:
   password expiry:
   is information correct? (yes, no, quit): [yes]
   user "aaa" has been added

   设置 ipcp 使拨入端口向远端客户端发送ip 地址。

   config (only)>n 5
   circuit configuration
   isp dial-in circuit config: 5>enc
   point-to-point user configuration
   isp ppp 5 config>set ipcp
   ip compression [no]:
   request an ip address [no]:
   send our ip address [no]: y
   note: unnumbered interface addresses will not be sent.
   interface remote ip address to offer if requested (0.0.0.0 for none)
   [0.0.0.0]? 9.1.1.1
   isp ppp 5 config>exit
   isp dial-in circuit config: 5>exit

   设置token ring 端口的ip地址
   设置dial in circuit 端口的ip地址

   config (only)>p ip
   internet protocol user configuration
   isp ip config>add add 4 192.1.1.254 255.255.255.0
   isp ip config>add add 5 9.1.1.2 255.255.255.255
   isp ip config>ena arp-subnet-routing
   isp ip config>exit

   设置发到客户端的dns 的ip 地址。

   config (only)>fea dials
   dial-in access to lans global configuration
   isp dials config>set enable dynamic
   isp dials config>set dns primary
   primary domain name server (dns) address [0.0.0.0]? 192.1.1.240
   isp dials config>exit

   客户端路由器的配置:
   设置系统名为client.
   添加token ring 接口
   设置wan 口并连接v34 modem.
   在wan口上添加dial circuit

   config (only)>set host client
   config (only)>add device tr-2
   device slot #(1-4) [1]?
   device port #(1-2) [1]?
   adding 2-port ibm token ring device in slot 1 port 1 as interface #4
   use "net 4" to configure 2-port ibm token ring parameters
   config (only)>set data v34
   interface number [0]? 2
   config (only)>add device dial
   base net for the circuit(s) [0]? 2
   enter the number of ppp dial circuit interfaces [1]?
   adding device as interface 5
   defaulting data-link protocol to ppp
   add more dial circuit interface(s)?(yes or [no]):
   use "set data-link" command to change the data-link protocol

   在token ring 端口上添加 ip地址
   在dial circuit 端口上添加 ip地址
   添加通过 dial circuit 端口的缺省路由。
   在dial circuit 端口上激活动态 ip

   config (only)>p ip
   internet protocol user configuration
   client ip config>add add 4 192.168.89.254 255.255.255.0
   client ip config>add add 5 0.0.0.5 255.255.255.255
   client ip config>add router 0.0.0.0 0.0.0.0 0.0.0.5
   cost [1]?
   client ip config>enable dynamic
   interface address []? 0.0.0.5
   client ip config>exit

   激活 dhcp 服务器功能
   添加token ring 端口的ip子网掩码。
   添加源dns 的ip 地址。

本文来源:https://shitiku.jxxyjl.com/ibmrenzhengfuxizhidao/6012.html

Copyright @ 2011- 考试题库网 All Rights Reserved. 版权所有

免责声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。

 站长统计