分享
 
 
 

单臂路由/PPPoE/PPPoA配置实例

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

贴一个单臂路由的配置实例

交换机配置

3512xl#show running-config

Building configuration...

Current configuration:

!

version 12.0

no service pad

service timestamps debug uptime

service timestamps log uptime

no service passWord-encryption

!

hostname 3512xl

!

no logging console

enable password mysecret

!

!

!

!

!

ip subnet-zero

!

!

!

interface FastEthernet0/1

switchport mode trunk

!

!-- If 802.1Q is configured,

!-- you will instead see the following output

!-- under interface FastEthernet0/1:

!-- interface FastEthernet0/1

!-- switchport trunk encapsulation dot1q

!-- switchport mode trunk

!

interface FastEthernet0/2

switchport access vlan 2

spanning-tree portfast

!

interface FastEthernet0/3

spanning-tree portfast

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface VLAN1

ip address 10.10.10.2 255.255.255.0

no ip directed-broadcast

no ip route-cache

!

ip default-gateway 10.10.10.1

!

line con 0

transport input none

stopbits 1

line vty 0 4

password mysecret

login

line vty 5 15

login

!

end

路由器配置

Current configuration:

!

version 12.1

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname c2600

!

no logging console

enable password mysecret

!

!

!

!

!

ip subnet-zero

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

!

interface FastEthernet0/0.1

encapsulation isl 1

ip address 10.10.10.1 255.255.255.0

no ip redirects

!

!-- If 802.1Q is configured,

!-- you will instead see the following output

!-- under interface FastEthernet0/0.1:

!-- interface FastEthernet0/0.1

!-- encapsulation dot1Q 1 native

!-- ip address 10.10.10.1 255.255.255.0

!

!

interface FastEthernet0/0.2

encapsulation isl 2

ip address 10.10.11.1 255.255.255.0

no ip redirects

!

!-- If 802.1Q is configured,

!-- you will instead see the following output

!-- under interface FastEthernet0/0.2:

!-- interface FastEthernet0/0.2

!-- encapsulation dot1Q 2

!-- ip address 10.10.11.1 255.255.255.0

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

ip classless

no ip http server

!

!

!

line con 0

transport input none

line aux 0

line vty 0 4

password mysecret

login

!

no scheduler allocate

end

PPPoE配置实例(2600路由器接ADSL Modem)

[[The No.2 Picture.]]

hostname pooh

ip host rund 172.17.247.195

!

ip subnet-zero

no ip domain-lookup

!

vpdn enable

no vpdn logging

!

vpdn-group 1

request-dialin

PRotocol pppoe

!

!

!

!

interface Ethernet0/0

ip address 10.200.56.22 255.255.255.0

ip nat inside

no ip mroute-cache

!

!

!

!

interface Ethernet0/1

no ip address

pppoe enable

pppoe-client dial-pool-number 1

!

interface Dialer1

ip address negotiated

ip nat outside

ip mtu 1492

encapsulation ppp

no ip mroute-cache

dialer pool 1

dialer-group 1

ppp authentication pap

ppp pap sent-username cisco password cisco1

!

ip classless

no ip http server

!

dialer-list 1 protocol ip permit

ip nat inside source list 1 interface Dialer1 overload

ip route 0.0.0.0 0.0.0.0 dialer1

access-list 1 permit 10.200.56.0 0.0.0.255

!

line con 0

exec-timeout 0 0

transport input none

line vty 0 4

login

password ww

!

end

PPPoA配置实例 (2600路由器连接Wic-1ADSL)

vpdn enable

no vpdn logging

!--- default.

!

vpdn-group pppoe

request-dialin

!--- we are the PPPoE client requesting to establish

!--- a session with the aggregation unit (6400 NRP).

protocol pppoe

!

!--- internal Ethernet network.

!

interface FastEthernet0

ip address 10.92.1.182 255.255.255.0

ip nat inside

!--- DSL interface.

!

interface ATM0

no ip address

no atm ilmi-keepalive

bundle-enable

dsl Operating-mode auto

hold-queue 224 in

!--- All defaults.

!--- PPPoE runs on top of AAL5SNAP, but the

!--- encap aal5snap command is not used.

!

interface ATM0.1 point-to-point

pvc 1/1

pppoe-client dial-pool-number 1

!--- pvc 1/1 is an example value that must be changed

!--- to match the value used by the ISP.

!

!--- The PPPoE client code ties into a dialer interface upon

!--- which a virtual-access interface is cloned.

!

interface Dialer1

ip address negotiated

ip mtu 1492

!--- Ethernet MTU default = 1500 (1492 + PPPoE headers = 1500)

ip nat outside

encapsulation ppp

dialer pool 1

!--- Ties to atm interface.

ppp authentication chap callin

ppp chap hostname

ppp chap password

!

!--- The ISP will instrUCt you regarding

!--- the type of authentication to use.

!--- To change from PPP CHAP to PPP PAP,

!--- replace the following three lines:

!--- ppp authentication chap callin

!--- ppp chap hostname

!--- ppp chap password

!--- with the following two lines:

!--- ppp authentication pap callin

!--- ppp pap sent-username password

!--- For NAT we are going to overload on the Dialer1

!--- interface and add a default route out

!--- since dialer ip address can change.

ip nat inside source list 1 interface Dialer1 overload

ip classless

ip route 0.0.0.0 0.0.0.0 dialer1

no ip http server

!

access-list 1 permit 10.92.1.0 0.0.0.255

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
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- 王朝網路 版權所有