...内部网络网段为 192.168.10.0 且自动获取IP,求配置命令?
发布网友
发布时间:2024-09-30 03:07
我来回答
共1个回答
热心网友
时间:2024-09-30 12:56
内网映射
nat server protocol tcp global 202.169.10.5 www inside 192.168.20.2 8080
具体用哪个端口,自己决定。
#
vlan batch 100 200
#
nat alg ftp enable
#
interface Vlanif100
ip address 192.168.20.1 255.255.255.0
#
interface Vlanif200
ip address 10.0.0.1 255.255.255.0
#
interface Ethernet2/0/0
port link-type access
port default vlan 100
#
interface Ethernet2/0/1
port link-type access
port default vlan 200
#
interface gigabitethernet 3/0/0
ip address 202.169.10.1 255.255.255.0
nat server protocol tcp global 202.169.10.5 www inside 192.168.20.2 8080
nat server protocol tcp global 202.169.10.33 ftp inside 10.0.0.3 ftp
#
ip route-static 0.0.0.0 0.0.0.0 gigabitethernet 3/0/0
#
return
分享