Cisco 7200 routing PPPOE dial Detailed

1.1 Configuring a virtual dial interface

R1 (config) #vpdn enable # Enable virtual private dial-up network vpdn

R1 (config) #interface dialer 1 # 1 defined in Dialer

R1 (config-if) #encapsulation ppp # Point encapsulation protocol employed ppp

R1 (config-if) #ip address negotiated # Dial ip using negotiation, automatically assigned by the operator

R1 (config-if) #ppp authentication chap # authentication using challenge handshake protocol can also be used pap certification, but pap is transmitted in the clear, unsafe

R1 (config-if) #ppp authentication chap callin # The remote inbound authentication (may not be arranged)

R1 (config-if) #ppp chap hostname zhanghu # broadband account

R1 (config-if) #ppp chap password mima # broadband password

R1 (config-if) #ppp ipcp dns request # while dialing request DNS address

R1 (config-if) #dialer pool 1 # 1 using dial dial pool

R1 (config-if) #ip nat outside # interfaces to external nat

R1(config-if)#no shut

# Mtu to be configured as required, usually 1492

1.2 Interface binding entity

R1(config-if)# inter f0/0

R1(config-if)#pppoe enable                 #启用pppoe

R1 (config-if) # pppoe-client dial-pool-number 1 # binding virtual dial 1, and an upper one corresponding to the virtual connection

R1(config-if)#no shutdown

R1(config-if)#exit

# Physical interfaces can be configured for duplex, speed as required.

1.3 Internal Interface Configuration

R1(config)#interface f 1/0

R1 (config-if) #ip nat inside # used as an internal nat

R1(config-if)#ip addr 192.168.0.1 255.255.255.0

R1(config-if)#no shutdown

# This interface is used as a LAN gateway

1.4 NAT and DHCP configuration       

R1 (config) #ip nat inside source list 1 interface dialer 1 overload # nat from the interface for dialer1

R1 (config) # access-list 1 permit 192.168.0.0 0.0.0.255 # ip NAT needs to be converted

R1 (config) #ip route 0.0.0.0 0.0.0.0 dialer 1 # default route

R1(config)#ip dhcp pool new-pool

R1(dhcp-config)#network  192.168.0.0  255.255.255.0

R1(dhcp-config)#default-router  192.168.0.1

R1(dhcp-config)#dns-server 192.168.0.1

R1(dhcp-config)#exit

R1(config)#ip dhcp excluded-address  192.168.0.1

R1(dhcp-config)#exit

 

 

Guess you like

Origin www.cnblogs.com/simendavid/p/12020766.html