分享
 
 
 

PPPOE+NAT配置实例

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

1.After the router has reloaded. enter enable mode again.

Routerenable

Router#

2.Configure service timestamp to properly log and display debug output in the troubleshooting section.

Router#configure terminal

Router(config)#service timestamps debug datetime msec

Router(config)#service timestamps log datetime msec

Router(config)#end

3.Disable logging console on your Cisco DSL Router to suppress console messages that may be triggered while you are configuring the router.

Router#configure terminal

Router(config)#no logging console

Router(config)#end

4.Configure ip routing. ip subnet-zero. and ip classless to provide flexibility in routing configuration options.

Router#configure terminal

Router(config)#ip routing

Router(config)#ip subnet-zero

Router(config)#ip classless

Router(config)#end

5.Configure global Point-to-Point Protocol over Ethernet (PPPoE) parameters.

Router#configure terminal

Router(config)#vpdn enable

Router(config)#no vpdn logging

Router(config)#vpdn-group pppoe

Router(config-vpdn)#request-dialin

Router(config-vpdn-req-in)#protocol pppoe

Router(config-vpdn-req-in)#end

6.Configure an IP address and subnet mask on the Cisco DSL Router Ethernet interface.

(Optional) Enable NAT inside on the Ethernet interface.

Router#configure terminal

Router(config)#interface ethernet 0

Router(config-if)#ip tcp adjust-mss 1452/ip adjust-mss 1452

Router(config-if)#ip address 192.168.1.2 255.255.255.252

Router(config-if)#ip nat inside

Router(config-if)#no shut

Router(config-if)#end

7.Configure the ATM interface of your Cisco DSL Router with an ATM permanent virtual circuit (PVC). encapsulation type. and Dialer pool.

Router#configure terminal

Router(config)#interface atm 0

Router(config-if)#pvc 0/35 (Guizhou Province)

Router(config-if-atm-vc)#pppoe-client dial-pool-number 1

Router(config-if-atm-vc)#no shut

Router(config-if-atm-vc)#end

8.Configure the Dialer interface of your Cisco DSL Router for Point-to-Point Protocol over ATM (PPPoA) to enable a dynamic IP address to be assigned.

(Optional) Enable NAT outside on the Dialer interface.

Router#configure terminal

Router(config)#interface dialer 1

Router(config-if)#ip address negotiated

Router(config-if)#mtu 1492

Router(config-if)#no ip directed-broadcast

Router(config-if)#ip nat outside

Router(config-if)#encapsulation ppp

Router(config-if)#dialer pool 1

Router(config-if)#ppp auth chap hostname heiye

Router(config-if)#ppp auth chap password heiye

Router(config-if)#ppp auth pap sent-username heiye password heiye

Router(config-if)#end

9.Configure a default route using Dialer1 as the outbound interface.

Router#configure terminal

Router(config)#ip route 0.0.0.0 0.0.0.0 dialer1

Router(config)#end

10.Configure global NAT commands on the Cisco DSL Router to allow sharing of the dynamic public IP address of the Dialer interface.

Router#configure terminal

Router(config)#ip nat inside source list 1 interface dialer1 overload

Router(config)#access-list 1 permit 192.168.1.3 0.0.0.255

Router(config)#end

11.Optional Configurations

NAT Pool. if additional IP addresses have been provided by your ISP.

Router(config)#ip nat inside source list 1 pool ciscooverload

Router(config)#ip nat pool cisco 200.1.1. 200.1.1.254 netmask 255.255.255. 0

Router(config)#end

12.

Static NAT. if Internet users require access to internal servers.

Router(config)#ip nat inside source static tcp 192.168.1.5 80 200.1.1.5 80 extendable

Router(config)#end

13.(Optional) Configure the Cisco DSL Router as a DHCP server with a pool of IP addresses to assign to hosts connected to the Ethernet interface of the Cisco DSL Router. The DHCP server dynamically assigns an IP address. Domain Name Server (DNS). and the default gateway IP address to your hosts.

Router#configure terminal

Router(config)#ip dhcp excluded-address 192.168.21.2(E0 ip address)

Router(config)#ip dhcp pool wang

Router(dhcp-config)#network 192.168.1.2 255.255.255.0

Router(dhcp-config)#default-router 192.168.1.2

Router(dhcp-config)#dns-server 202.98.198.168 202.98.192.68

Router(dhcp-config)#end

14.Enable the logging console on the Cisco DSL Router, and write all the changes to memory.

Router#configure terminal

Router(config)#logging console

Router(config)#end

*Jan 1 00:00:00.100: %SYS-5-CONFIG_I: Configured from console by console

Router#write memory/copy run start

Building configuration... [OK]

Router#show run

Router#show ip int brief

to view the IP interface status.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有