aaa
local-user admin password cipher Admin@huawei
local-user admin privilege level 15
local-user admin service-type telnet ssh
!
user-interface con 0
authentication-mode password
set authentication password cipher Admin@huawei
!
user-interface vty 0 4
authentication-mode aaa
!
interface GigabitEthernet0/0/0
description Interface_LAN
ip address 192.168.1.1 255.255.255.0
undo shut
#
interface GigabitEthernet0/0/1
description Interface_WAN
ip address 187.51.221.150 255.255.255.252
undo shut
#
ip route-static 0.0.0.0 0 187.51.221.149
Configurando com vlan
system-view
aaa
local-user admin password cipher Admin@huawei
local-user admin privilege level 15
local-user admin service-type telnet ssh
!
user-interface con 0
authentication-mode password
set authentication password cipher Admin@huawei
!
user-interface vty 0 4
authentication-mode aaa
!
interface GigabitEthernet0/0/0
description Interface_LAN
ip address 192.168.1.1 255.255.255.0
undo shut
#
interface GigabitEthernet0/0/1.XX
dot1q termination vid XX
ip address 187.51.221.150 255.255.255.252
#
interface GigabitEthernet0/0/1
undo ip address
#
ip route-static 0.0.0.0 0 187.51.221.149