Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

<Huawei>system-view

[Huawei]interface GigabitEthernet 0/0/0


[Huawei-GigabitEthernet0/0/0]ip address 10.0.0.1 24
!
[Huawei-GigabitEthernet0/0/0]dis this
#
interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0
#
Return
!
[Huawei-GigabitEthernet0/0/0]q
[Huawei]
!
[Huawei]sysname R1
[R1]
!
[Huawei]d?
ddns dhcp
dhcpv6 diagnose
display dns
domain dot1x
dsa
!
[R1]interface LoopBack 0
[R1-LoopBack0]
Jun 16 2020 14:18:19-08:00 R1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 5, the ch
ange loop count is 0, and the maximum number of records is 4095.
[R1-LoopBack0]ip add
[R1-LoopBack0]ip address 1.1.1.1 255.255.255.255

[R1-LoopBack0]dis ip int br
*down: administratively down
!down: FIB overload down
^down: standby
(l): loopback
(s): spoofing
(d): Dampening Suppressed
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 9
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 9

Interface IP Address/Mask Physical Protocol


Ethernet0/0/0 unassigned down down
Ethernet0/0/1 unassigned down down
GigabitEthernet0/0/0 10.0.0.1/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
GigabitEthernet0/0/3 unassigned down down
LoopBack0 1.1.1.1/32 up up(s)
NULL0 unassigned up up(s)
Serial0/0/0 unassigned down down
Serial0/0/1 unassigned down down
Serial0/0/2 unassigned down down
Serial0/0/3 unassigned down down

OSPF

STATIC ROUTE
DHCP

DHCP INTERFACE POOL CONFIGURATION DHCP GLOBAL POOL CONFIGURATION


[Huawei]sysname R1 [R1-ip-pool-LAN1]network 20.20.20.0 mask 24
[R1]dhcp enable [R1-ip-pool-LAN1]gateway-list 20.20.20.1
[R1]interface g0/0/0 [R1-ip-pool-LAN1]lease day 1
[R1-GigabitEthernet0/0/0]dhcp select interface [R1-ip-pool-LAN1]static-bind ip-address 20.20.20.100 mac-
[R1-GigabitEthernet0/0/0]ip add 10.10.10.1 24 address 1111-2222-aaaa
[R1-GigabitEthernet0/0/0]dhcp server dns-list 10.10.10.1 [R1-ip-pool-LAN1]quit
[R1-GigabitEthernet0/0/0]dhcp server excluded-ip-address [R1-GigabitEthernet0/0/0]int gi0/0/1
10.10.10.1 [R1-GigabitEthernet0/0/1]ip add 20.20.20.1 24
[R1-GigabitEthernet0/0/0]dhcp server lease day 1 [R1-GigabitEthernet0/0/1]dhcp select global
[R1]display ip pool interface GigabitEthernet0/0/0 [R1]dis ip pool
TELNET
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 10.10.10.1 24
[R1-GigabitEthernet0/0/0]quit
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):huawei
[R1-ui-vty0-4]set authentication password cipher huawei

VLAN
[S1]vlan 10
[S1-vlan10]
[S1-vlan10]description FINANCE

[S1]int Ethernet0/0/1
[S1-Ethernet0/0/1]port link-type access
[S1-Ethernet0/0/1]port default vlan 10

You might also like