扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
Router#show run
Building configuration...
Current configuration : 1638 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
!
username adslprivilege 15 password 7 xxxxxxxxxxxxxxxxxx
ip subnet-zero
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.0.1 192.168.0.2
ip dhcp ping packets 3
!
ip dhcp pool xxxxxxxx
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 202.96.104.18
domain-name xxxxxxxxxxxxxxxxx
lease 8
!
ip dhcp pool ftp
host 192.168.0.252 255.255.255.0
hardware-address 0010.7500.8021
client-name ftp-server
!
vpdn enable
!
vpdn-group Adsl
request-dialin
protocol pppoe
!
!
!
!
interface Ethernet0/0
no ip address
no ip mroute-cache
half-duplex
pppoe enable
pppoe-client dial-pool-number 100
!
interface Ethernet0/1
ip address 192.168.0.1 255.255.255.0
ip natinside
ip tcp adjust-mss 1450 这条很重要限制内网用户mtu为1450。这样163.net等网站才进的去
half-duplex
!
interface Dialer10
ip address negotiated
ip nat outside
encapsulation ppp
no ip mroute-cache
load-interval 30
dialer pool 100
dialer-group 99
pulse-time 0
ppp authentication pap callin
ppp pap sent-username xxxxxxxx password 7 xxxxxxxxxxxxxxxxxxxxx
!
ip nat inside source list 188 interface Dialer10 overload
ip nat inside source static tcp 192.168.0.252 21 interface Dialer10 21
ip nat inside source static tcp 192.168.0.188 20000 interface Dialer10 20000
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer10
ip http server
ip pim bidir-enable
!
logging 192.168.0.188
access-list188 permit ip any any
dialer-list 99 protocol ip permit
!
line con 0
login local
line aux 0
line vty 0 4
login local
line vty 5 181
login local
!
!
end
Router#
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者