[Router]dis cu
Now create configuration...
Current configuration
!
version 1.74
local-user huawei service-type administrator password cipher $--_+[(77XK[*("O
4'-'.1!!
undo pos-server addr-switch
//连接池 如果是一个静态ip ip写两遍
nat address-group xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx pool1
firewall enable
aaa-enable
aaa accounting-scheme optional
!
acl 2000 match-order auto
rule normal permit source 192.168.0.0 0.0.0.255
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
//外网ip和子网掩码
ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
nat outbound 2000 address-group pool1
//外网ip 端口映射 3389远程桌面
nat server global xxx.xxx.xxx.xxx 3389 inside 192.168.0.xxx 3389 tcp
nat server global xxx.xxx.xxx.xxx www inside 192.168.0.xxx www tcp
nat server global xxx.xxx.xxx.xxx 8080 inside 192.168.0.xxx 8080 tcp
!
interface Ethernet1
ip address 192.168.0.1 255.255.255.0
!
interface Serial0
link-protocol ppp
!
interface Serial1
link-protocol ppp
!
Quit
//表示网关
ip route-static 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx preference 60
!
return
华为2621路由器配置 静态ip 光纤接入
最新推荐文章于 2024-03-13 12:00:09 发布