Huawei AR151 Router - Basic Configuration Guide
Enter Privileged/System View
system-view
<GMT>sys
Enter system view, return user view with Ctrl+Z.
[GMT]
Set the host name
sysname
E.g. Sysname GMT
Show running configuration/Display interface commands
display current configuration
display current interfaces
display interface [ interface-type interface-number ]
display interface description
display ip interface[ interface-type interface-number ]
display ip interface brief [ interface-type [ interface-number ] ]
Configure a dot1q VLAN sub-interface on Eth0/0/4 and add the WAN IP address
interface Ethernet0/0/4.1030
description conn_to_PE
dot1q termination vid 1030
ip address [Link] [Link]
Create an SVI - Adding the LAN IP
vlan 2
description vlan2
interface Vlanif2
description LAN IP
ip address [Link] [Link]
Configure a LAN port Ethernet0/0/0 as an access port.
interface Ethernet0/0/0
port link-type access
port default vlan 2
*VLAN 1 may be used to allow LAN access on all switched ports
Add Loopback IP
interface LoopBack0
description loopback ip
ip address [Link] [Link]
*Run display interface loopback0 to check the interface status.
OSPF Configuration
ospf 1
area [Link]
network [Link] [Link]
network [Link] [Link]
*This is optional. OSPF parameters to be provided and configured by Datacomms.
Set Console Password (Optional)
user-interface con 0
authentication-mode password
set authentication password cipher
%@%@$uU1"JwUb#|wPb(jj1v.,.g\;C#|$c5:*[Link].g_,%@%@
Enable Telnet and Password authentication
user-interface vty 0 4
authentication-mode password
user privilege level 15
set authentication password cipher
%@%@Zy,CZhpnB+^(q~Ru9R{B,$Xw+ZdO57MGM#DRwZ1zRKhS$Xz,%@%@
idle-timeout 0 0
[GMT]
*cipher command encrypts the password. Default password is Changeme_123 or huawei123.
*To enable telnet service.
[GMT]Telnet server enable
*To enter aaa view and add telnet service for the user admin.
[GMT]aaa
*To add telnet service for the user admin
[GMT]local-user admin service-type terminal http telnet
Enable SNMP Trap
snmp-agent trap enable
*The outbound and inbound bandwidth utilization alarm function is enabled on all Ethernet
interfaces.
Save Configuration
Save
Close session
Quit
Return to User View
CTRL+Z