Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19007031
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: 系统运维

2008-05-20 21:42:50

一.WIC-ADSL 卡接线路
vpdn enable
no vpdn logging
!
vpdn-group pppoe
request-dialin
protocol pppoe
!
inter f0/0
ip add 192.168.0.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1450>
!
inter ATM0
no ip address
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
hold-queue 224 in


interface ATM0.1 POINT-TO-POINT
pvc 8/35    此处的pvc值8/35要根据具体情况而定,咨询电信
pppoe-client dial-pool-number 1
!
inter dialer1
ip address negotiated
ip nat outside
encap ppp
dialer pool 1
ppp authen pap callin
ppp pap sent xxxx pass xxxx  用户名密码
!
ip nat inside source list 1 interface dialer1 overload
ip calssess
ip route 0.0.0.0 0.0.0.0 dialer1
no ip http server
!
access-list 1 permit 192.168.0.0 0.0.0.255


[page]
二.或者利用另外一个以太网口 接到 ADSL MODEM再接线路
hostname xxxx
ip name-server x.x.x.x  dns的地址
vpdn enable
vpdn-group pppoe
request-dialin
protocol pppoe

inter f 0/0
ip add 192.168.0.1 255.255.255.0
ip nat inside

inter f 0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1

inter dialer 1
mut 1492
ip address negotiated
ip nat outside
encap ppp
no ip mroute-cache
dialer pool 1
dialer-group 1
no cdp enable
ppp authen pap callin
ppp pap sent xxx pass xxx  用户名密码


ip nat inside source list 1 inter dialer 1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 dialer1 permanent
no ip http server
ip pim bidir-enable
access-list 1 permit any
dialer-list 1 protocol ip permit

阅读(261) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~