1 、利用串口線接好電腦與路由器,
2、 配置超級終端:9600 8 1;
3 、新路由器的話,直接就進入了
4 、大於號狀態下輸入 enable.回車
5 、config
int gi0/0
ip address (公網IP) (子網掩碼)
ip nat outside
q
int gi0/1
ip address (私網IP,如192.168.0.1) (私網DNS,如255.255.255.0)
ip nat inside
q
aaa authentication login default local enable
aaa authentication enable default enable
enable password 0 (登陸密碼,可任意修改)
username admin password 0 (登陸密碼,可任意修改)
ip dhcpd pool p1
network 192.168.0.0 255.255.255.0
range 192.168.0.4 192.168.0.250
default-router 192.168.0.1
dns-server (公網首選DNS) (公網備用DNS)
q
ip dhcpd enable
ip route defau (公網網關)
ip nat pool yyy (公網IP) (公網IP) 255.255.255.255
ip access-list standard a1
permit 192.168.0.0 255.255.255.0
q
ip nat inside source list a1 pool yyy overload
ex
write