R2640
路由器(千兆以太)配置
ena
conf
host
HWJDE
aaa authentication login default local
aaa authentication enable default enable
username
root
password
admin
enable
password
admin
interface GigaEthernet0/0.222
description R260
ip address 222.50.4.6 255.255.255.248
encapsulation dot1Q 222
ip nat outside
interface
vl 1
ip address 192.168.100.1 255.255.255.0
ip nat inside
quit
ip route default 222.50.4.5
ip access-list standard fs1
permit 192.168.100.0 255.255.255.0
quit
ip dhcpd pool fs1
network 10.0.0.0 255.255.255.0
range 10.0.0.2 10.0.0.254
default-router 192.168.100.1
dns-server 118.203.123.116 228.136.17.107
quit
ip dhcpd enable
ip nat pool fs1 222.50.4.6
222.50.4.6
255.255.255.248
ip nat inside source list
fs1
pool