hello world

思科1841路由器配置PPPoE做互联网出口路由器

背景简介:

1841路由器2个口,FastEthernet0/0作为互联网口,电信运营商入口接入这个口,FastEthernet0/1作为内网口,也是内网的网关,配置IP地址192.168.200.1

下面开始配置,不多解释,一节一节的贴配置:

一、配置DHCP

ip dhcp pool
   network 192.168.200.0 255.255.255.0
   default-router 192.168.200.1
   dns-server 223.5.5.5 114.114.114.114
   domain-name crospace.cn
   lease 100

二、配置vpdn

ip domain name crospace.cn
multilink bundle-name authenticated
vpdn enable
vpdn-group office
 request-dialin
  protocol pppoe

三、配置互联网口

interface FastEthernet0/0
 description Internet
 no ip address
 pppoe enable
 pppoe-client dial-pool-number
四、配置内网口

interface FastEthernet0/1
 description Localnet
 ip address 192.168.200.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
五、配置PPPoE拨号

interface Dialer1
 ip address negotiated
 ip mtu 1492
 ip nat outside
 ip virtual-reassembly
 encapsulation ppp
 ip tcp adjust-mss 1452
 dialer pool 1
 dialer idle-timeout 0
 dialer hold-queue 100
 dialer persistent
 dialer-group 1
 ppp authentication pap callin
 ppp pap sent-username **账号** password 0 **密码**

六、定义NAT内网地址

access-list 1 permit 192.168.200.0 0.0.0.255

七、验证

Cisco-C1841#sh ip int br
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES manual up                    up      
FastEthernet0/1            192.168.200.1   YES manual up                    up      
NVI0                       10.254.254.102  YES unset  up                    up      
Virtual-Access1            unassigned      YES unset  up                    up      
Dialer1                    118.116.38.250  YES IPCP   up                    up      
Loopback0                  10.254.254.102  YES NVRAM  up                    up

posted @ 2020-02-24 14:41  浩天四哥  阅读(1456)  评论(0)    收藏  举报