简单拓扑图
云设置,
端口创建,绑定信息里要选择当前使用的连接外网的网卡,然后点增加;
然后再选择UDP,点增加;
端口映射设置,入端口编号选择2,并将双向通道前面打上√
使用ipconfig查得当前外网网卡地址是192.168.18.103
配置路由器GE 0/0/0端口地址为192.168.18.110
<Huawei>dis cur
#
sysname Huawei
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
ip address 192.168.18.110 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
<Huawei>
从本机Ping路由器(见下图,通的)
再从路由器Ping云,即本机的地址(见下图,也是通的)
再路由器上根据下图方法进行telnet配置
如果登陆时候如下图提示(Error: Local authentication is rejected.)
则再增加此命令后再登陆即可local-user admin service-type telnet http