version 12.4 no aaa new-model ! resource policy ! no network-clock-participate slot 1 no network-clock-participate wic 0 ip subnet-zero ip cef ip name-server 202.106.46.151 ip name-server 202.106.195.68 !---以下是动态DNS的配制,首先要在www.3322.org..
version 12.4
no aaa new-model
!
resource policy
!
no network-clock-participate slot 1
no network-clock-participate wic 0
ip subnet-zero
ip cef
ip name-server 202.106.46.151
ip name-server 202.106.195.68
!---以下是动态DNS的配制,首先要在www.3322.org希网注册一个账号和一个主机的二级域名
ip ddns update method test
HTTP
add http://your_username:password@members.3322.org/dyndns/update?system=dyndns&hostname=<h>&myip=<a>
!---如果用www.dyndns.org改用如下命令
!---add http://test:test@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
1---设置更新间隔 天 小时 分钟 秒
interval maximum 0 0 1 0
!
vpdn enable
interface FastEthernet0/0
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
interface FastEthernet0/1
ip address 192.168.1.90 255.255.255.0
ip nat inside
###############################################################
在思科路路由器上配置ADSL,经常在比较多的时候会出现访问不了微软的网站或者登陆不了MSN,还有的PING都PING不通,这个问题其实很简单,但是想到它却有点难.只要关心一下MTU值的问题就能解决这个问题了!一般默认的MTU值是不影响正常的数据通讯的,但是在ADSL的网络环境下,要设置MTU值为1492,而MSN在数据传输的时候识别的MTU值是1450.所以才会出现登陆不了,还会造成网络断线的情况发生.
###############################################################
ip tcp adjust-mss 1450
no ip mroute-cache
duplex auto
speed auto
!
interface Dialer1
ip ddns update hostname yourhostname.3322.org
ip ddns update test
ip address negotiated
ip nat outside
encapsulation ppp
no ip mroute-cache
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username PPPoE_username password 0 PPPoE_password
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer1 overload
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
!
control-plane
调试命令:
show ip ddns update 和 debug ip ddns update