You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[R_] int <interface> <port>
[int] undo shutdown
[int] quit
create subinterfaces
[R_] int <interface> <port>.<vlan-id> // ex. int GigabitEthernet 0/0/0.10
[int] dot1q termination vid <vlan-id> // dot1q encapsulation
[int] ip address <ip> <mask> // ex. ip address 192.168.10.1 24
[int] arp broadcast enable
[int] display this
[int] quit
default route to ISP
[R_] int <interface> <port> // interface connected to ISP
[int] ip address <ip> <mask>
[int] undo shutdown
[int] display this
[int] quit
[R_] ip route-static 0.0.0.0 0.0.0.0 <isp-ip>
DHCP by interface
[R_] dhcp enable
[R_] int <interface> <port>
[int] dhcp server excluded-ip-address <from-ip> <to-ip>
[int] dhcp select interface // enable dhcp on this interface
[int] dhcp server dns-list 8.8.8.8
[int] display this
[int] quit
DHCP with pool
[R_] ip pool <name> // ip pool VLAN_90
[ip-pool] network <ip> mask <mask>
[ip-pool] gateway-list <ip>
[ip-pool] dns-list <ip>
[ip-pool] excluded-ip-address <from-ip> <to-ip>
[ip-pool] display this
[ip-pool] int <interface> <port>
[int] dhcp select global
[int] quit
OSPF (process)
[R_] ospf <process> router-id <id> // ex. ospf 800 router-id 2.2.2.2
[ospf-800] area 0 // only one area
[ospf-800-area-0] network <ip> <wildcard> // network 50.50.50.8 0.0.0.7
[ospf-800-area-0] display this
[ospf-800-area-0] quit
[R_] display ospf interface broadcast
OSPF (interface)
[R_] ospf <process> router-id <id> // ex. ospf 800 router-id 3.3.3.3
[ospf-800] area 0 // only one area
[ospf-800-area-0] quit
[R_] int <interface> <port>
[int ip address ...
[int] no sh
[int] ospf enable <process> <area>
[int] display ospf peer brief // show neighbors
fake route to google
[ISP3] interface loopback 1
[loopback] ip address 8.8.8.8 32
[loopback] quit
[ISP3] ip route-static 0.0.0.0 0.0.0.0 loopback 1
[ISP3] display ip routing-table
[ISP3] ospf <process>
[ospf-800] default-route-advertise
[port] shutdown # shutdown the interface
[port] no shutdown # starts the interface
[HUAWEI] display ip interface brief
[HUAWEI] display ip routing-table protocol ospf
[HUAWEI] reset ospf process