华为路由器的端口映射

<LNS>display current-configuration 查看当前的配置信息

 

<LNS>sysdisplay nat server  显示网卡映射的端口列表

Server in private network information:
  There are currently 4 internal servers 

  Interface:Ethernet0/0, Protocol:6(tcp),
     [global]   210.XXX.228.XX:      4005   [local]    192.168.8.191:    4005
  Interface:Ethernet0/0, Protocol:6(tcp),
     [global]   210.XXX.228.XX:      6300   [local]      192.168.8.8:      6300
  Interface:Ethernet0/0, Protocol:6(tcp),
     [global]   210.XXX.228.XX:      3100   [local]      192.168.8.8:      3100
  Interface:Ethernet0/0, Protocol:6(tcp),
     [global]   210.XXX.228.XX:      7100   [local]      192.168.8.8:      710


<LNS>sys   进入系统视图
System View: return to User View with Ctrl+Z.


[LNS]int eth0/0   进入Ethernet0/0

 

[LNS-Ethernet0/0]nat server protocol udp global 210.XXX.228.XX 1234 inside 192.168.1.201 1234   添加端口

[LNS-Ethernet0/0]undo nat server protocol udp global 210.XXX.228.XX 1234 inside 192.168.1.201 1234   删除端口

 

 

 

一些相关命令

<LNS>?    命令帮助

<LNS>display interface  显示网络接口信息(网卡)

 

 

你可能感兴趣的:(tcp,server,NetWork,华为,interface,路由器)