Login to Router and change to privileged mode
c:\>telnet 192.168.6.1
Trying 192.168.6.1...
Connected to 192.168.6.1.
Escape character is ‘^]‘.
User Access Verification
Username: admin
Password:
MC1812>
MC1812>enable
Password:
MC1812#
At privileged mode, check and change to PPPoE password
MC1812#sh run | inc pap
ppp pap sent-username user1 password 7 12090404015A
MC1812#
MC1812#config t
Enter configuration commands, one per line. End with CNTL/Z.
MC1812(config)#int dialer1
MC1812(config-if)#ppp pap sent-username user2 password pass2
MC1812(config-if)#end
MC1812#
MC1812#sh run | inc pap
ppp pap sent-username user2 password 7 111918160440
MC1812#
At privileged mode, save settings
MC1812#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
MC1812#
At privileged mode, check and change NAT settings (如需要的話)
HQ1812#sh run | inc source static
ip nat inside source static tcp 192.168.1.16 21 223.255.154.242 21 extendable
ip nat inside source static tcp 192.168.1.151 25 223.255.154.242 25 extendable
ip nat inside source static tcp 192.168.1.151 53 223.255.154.242 53 extendable
HQ1812#
HQ1812#config t
Enter configuration commands, one per line. End with CNTL/Z.
HQ1812(config)# ip nat inside source static tcp 192.168.1.123 1234 223.255.154.242 5678
HQ1812(config)#end
HQ1812#
HQ1812#sh run | inc source static
ip nat inside source static tcp 192.168.1.16 21 223.255.154.242 21 extendable
ip nat inside source static tcp 192.168.1.151 25 223.255.154.242 25 extendable
ip nat inside source static tcp 192.168.1.151 53 223.255.154.242 53 extendable
ip nat inside source static tcp 192.168.1.5 1234 223.255.154.242 5678 extendable
时间: 2024-10-23 19:46:07