it
分类: 网络与安全
2013-11-18 15:28:53
如果路由器下面还有PC要上网,还要配置NAT
acl 3000
rule permit ip
inter dialer 0
nat outbound 3000
[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