烽火交换机端口映射配置
代码语言:javascript复制ip nat inside source static udp iP 端口号 公网iP 端口号
ip nat inside source static udp 192.168.1.23 5055 183.198.74.37 5055
interface Vlan-intf1
ip address 172.16.1.1 255.255.255.0
no ip directed-broadcast
ip nat inside
ip access-list standard 1
permit 172.16.1.0 255.255.255.0
deny any
ip dhcpd pool 1
network 172.16.1.0 255.255.255.0
range 172.16.1.2 172.16.1.254
default-router 172.16.1.1
dns-server 211.138.13.66 111.11.1.1
烽火R2600配置脚本
代码语言:javascript复制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
这是烽火R2600配置案例参考一下;
你要有原来的配置脚本,把其直接拷入新路由器就可以了。