Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3503132
  • 博文数量: 349
  • 博客积分: 5771
  • 博客等级: 大校
  • 技术积分: 4193
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-06 11:52
个人简介

it

文章分类

全部博文(349)

文章存档

2019年(2)

2018年(2)

2017年(1)

2016年(2)

2015年(18)

2014年(36)

2013年(69)

2012年(100)

2011年(62)

2010年(57)

分类: 网络与安全

2013-11-18 15:28:53

server端:
#
ip pool pool2
 gateway-list 192.168.10.1
 network 192.168.10.0 mask 255.255.255.0 
 
#
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
 local-user client password cipher %$%$t:veSu2**5pC(c5rjE'I/L0L%$%$
 local-user client service-type ppp
#
#
interface Virtual-Template1
 ppp authentication-mode chap
 remote address pool pool2
 ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet0/0/0
 pppoe-server bind Virtual-Template 1
#
interface GigabitEthernet0/0/1
 ip address 202.10.1.1 255.255.255.252
#
interface GigabitEthernet0/0/2
 pppoe-server bind Virtual-Template 1
#
client端配置

#
interface Dialer0
 link-protocol ppp
 ppp chap user client
 ppp chap password cipher %$%$<,;o~WYvz5aB75&cX;z~,.J:%$%$
 ip address ppp-negotiate
 dialer user server
 dialer bundle 1
 dialer-group 1
#


#
interface Ethernet0/0/8  //模拟器,发现只有8端口可以设置ip。其他为为交换模式
   pppoe-client dial-bundle-number 1 on-demand
#

#
dialer-rule
 dialer-rule 1 ip permit
#
ip route-static 0.0.0.0 0.0.0.0 Dialer0
#
 

如果路由器下面还有PC要上网,还要配置NAT

acl 3000
rule permit ip
inter dialer 0
nat outbound 3000

dispaly下。
server端:

[server]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 11       Routes : 11      

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
   192.168.10.0/24  Direct  0    0           D   192.168.10.1    Virtual-Template1
   192.168.10.1/32  Direct  0    0           D   127.0.0.1       Virtual-Template1
 192.168.10.254/32  Direct  0    0           D   192.168.10.254  Virtual-Template1
 192.168.10.255/32  Direct  0    0           D   127.0.0.1       Virtual-Template1
     202.10.1.0/30  Direct  0    0           D   202.10.1.1      GigabitEthernet0/0/1
     202.10.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
     202.10.1.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

 [server]dis pppoe-server session all
SID Intf                      State OIntf          RemMAC         LocMAC
1   Virtual-Template1:0       UP    GE0/0/0        00e0.fc03.29ab 00e0.fc03.fcc1
[server]dis ac 
[server]dis access-user
 ------------------------------------------------------------------------------
 UserID Username                       IP address                   MAC 
 ------------------------------------------------------------------------------
 150    client                         -                         00e0-fc03-29ab
 ------------------------------------------------------------------------------
 Total 1,1 printed
 
client端:

[Huawei]dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol 
Dialer0                           192.168.10.254/32    up         up(s)    
Ethernet0/0/8                     unassigned           up         down     
NULL0                             unassigned           up         up(s)    
[Huawei]dis pppoe-cli sess su
PPPoE Client Session:
ID   Bundle  Dialer  Intf             Client-MAC    Server-MAC    State
1    1       0       Eth0/0/8         00e0fc0329ab  00e0fc03fcc1  UP   

pppoe-server.rar



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

othersonlyme2017-04-24 15:44:30

文明上网,理性发言...能整个注释就好了。