【路由器动态ip获取不了】IBM路由器动态IP地址的配置举例
【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
- 详细阅读
-
基于spring框架的系统|基于Spring框架的WebSphere应用开发3详细阅读
spring与websphere应用服务器的配合 spring与底层j2ee应用服务器还是存在一些需要结合的地方,这里给出was中的一些结合点。 使用was数据源 在java应用程序中,数据库的连接一般有两种方式来得到。一种是通过java sql drivermanager...
-
工科专业认证 经验|IBM专业认证经验总结(1)详细阅读
以下内容为针对电子商务(811),linux(101,102),aix(191),as 400(052,053),db2(512,513)认证考试的学习心得与经验总结,由2002年度ibm暑期夏令营全体营员经过讨论,整理,总结而成,希望可以给将要参加相应的认证培训的学生提供帮助。 电...
-
[基于spring框架的系统]基于Spring框架的WebSphere应用开发4详细阅读
共享库就是was专门用来解决不同应用程序之间共享jar或本地库文件的一种机制。共享库由一个名字、一个java类路径和 或一个装载jni库本地库路径组成。它可以分别在单元,节点和服务器级别定义。但是共享库定义了并不意味着它会被装载,只有当这个共享库与某个应用程序或应用服务器关联之后,它才...
-
【工科专业认证 经验】IBM专业认证经验总结详细阅读
以下内容为针对电子商务(811),linux(101,102),aix(191),as 400(052,053),db2(512,513)认证考试的学习心得与经验总结,由2002年度ibm暑期夏令营全体营员经过讨论,整理,总结而成,希望可以给将要参加相应的认证培训的学生提供帮助。 电...