Home  >  Article  >  Database  >  router 配置 (转载)

router 配置 (转载)

WBOY
WBOYOriginal
2016-06-07 15:05:501379browse

废话少说了,直接进入正题: router(config)# vpdn enable 启用VPDN router(config)# vpdn-group pppoe 为PPPoE启动VPDN的进程 router(config-vpdn)# request-dialin 定义呼叫 router(config-vpdn)# protocol pppoe 设置拨号协议为PPPoE interface FastEther

废话少说了,直接进入正题:

 

router(config)# vpdn enable       启用VPDN
router(config)# vpdn-group pppoe  为PPPoE启动VPDN的进程
router(config-vpdn)# request-dialin     定义呼叫
router(config-vpdn)# protocol pppoe     设置拨号协议为PPPoE

interface FastEthernet0
ip address 192.168.0.1 255.255.255.0   设置公司内部网络地址
ip nat inside 启用NAT转换
  
interface Dialer1    建立一个虚拟拨号端口
ip address negotiated    自动协商获得IP地址
ip mtu 1492      修改最大传输单元,默认为1500我们要修改为1492
ip nat outside   启用NAT转换
encapsulation ppp    使用PPP的帧格式
dialer pool 1
ppp authentication pap callin   设置拨号的验证方式为pap
ppp pap sent vip pass vip   ADSL的帐号

router(config)# ip route 0.0.0.0 0.0.0.0 dialer1
router(config)# ip nat inside source list 1 interface Dialer1 overload 设置了NAT的转换方式
router(config)# access-list 1 permit 192.168.0.0 0.0.0.255     设置ACL供NAT转换时进行过滤


interface ATM0 设置ADSL接口
no ip address    由于一般是自动获得IP地址所以不要设置IP
dsl operating-mode auto
pvc 1/33  vci/vpi的值
pppoe-client dial-pool-number 1 
no atm ilmi-keepalive  (此以下命令可选)
bundle-enable
hold-queue 224 in

 

配置DHCP
router(config)# ip dhcp pool abc
router(config-pool)# import all  从运营商获取DNS等信息
router(config-pool)# network 192.168.0.0 255.255.255.0
router(config-pool)# default-router 192.168.0.1 (要把这个地址从pool排除) 

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn