0% found this document useful (0 votes)
27 views

Huawei

Uploaded by

vuilam35
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Huawei

Uploaded by

vuilam35
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

<Huawei>SYSTEM-VIEW <CoreSW>sys

[Huawei]sysn CoreSW Enter system view, return user view with Ctrl+Z.
[CoreSW] [CoreSW]
[CoreSW]vlan bat 20 30 [CoreSW]dis cu
Info: This operation may take a few seconds. Please #
wait for a moment...done. sysname CoreSW
[CoreSW]int vlanif 20 #
[CoreSW-Vlanif20]ip address 192.168.2.1 24 vlan batch 20 30 40 100
[CoreSW-Vlanif20]q #
[CoreSW] cluster enable
[CoreSW]dhcp EN ntdp enable
Info: The operation may take a few seconds. Please ndp enable
wait for a moment.done. #
[CoreSW] drop illegal-mac alarm
[CoreSW]int vlanif 20 #
[CoreSW-Vlanif20]dhcp select interface dhcp enable
[CoreSW-Vlanif20]q #
[CoreSW] diffserv domain default
[CoreSW]int g0/0/2 #
[CoreSW-GigabitEthernet0/0/2]port link-type access drop-profile default
[CoreSW-GigabitEthernet0/0/2]port default vlan 20 #
[CoreSW-GigabitEthernet0/0/2]int g0/0/3 aaa
[CoreSW-GigabitEthernet0/0/3]port link-type access authentication-scheme default
[CoreSW-GigabitEthernet0/0/3]port default vlan 20 authorization-scheme default
[CoreSW-GigabitEthernet0/0/3]q accounting-scheme default
[CoreSW] domain default
[CoreSW]int vlanif 30 domain default_admin
[CoreSW-Vlanif30]ip address 192.168.1.1 24 local-user admin password simple admin
[CoreSW-Vlanif30]dhcp sel interface local-user admin service-type http
[CoreSW-Vlanif30]int g0/0/4 #
[CoreSW-GigabitEthernet0/0/4]port link-type access interface Vlanif1
[CoreSW-GigabitEthernet0/0/4]portswicth #
Error: The interface is already a L2 interface. interface Vlanif20
[CoreSW-GigabitEthernet0/0/4]port default vlan 30 ip address 192.168.2.1 255.255.255.0
[CoreSW-GigabitEthernet0/0/4]int g0/0/5 dhcp select interface
[CoreSW-GigabitEthernet0/0/5]port link-type access #
[CoreSW-GigabitEthernet0/0/5]port default vlan 30 interface Vlanif30
[CoreSW-GigabitEthernet0/0/5]q ip address 192.168.1.1 255.255.255.0
[CoreSW] dhcp select interface
[CoreSW]vlan 100 #
[CoreSW-vlan100]q interface Vlanif40
[CoreSW]int vlanif 100 ip address 192.168.40.1 255.255.255.0
[CoreSW-Vlanif100]ip address 10.1.1.1 24 dhcp select interface
[CoreSW-Vlanif100]q #
[CoreSW]int g0/0/1 interface Vlanif100
[CoreSW-GigabitEthernet0/0/1]port link-type access ip address 10.1.1.1 255.255.255.0
[CoreSW-GigabitEthernet0/0/1]port default vlan 100 #
[CoreSW-GigabitEthernet0/0/1]q interface MEth0/0/1
[CoreSW] #
[CoreSW]ip route-static 0.0.0.0 0 10.1.1.2 interface GigabitEthernet0/0/1
[CoreSW] port link-type access
[CoreSW]int vlanif 100 port default vlan 100
[CoreSW-Vlanif100]q #
[CoreSW]vlan 40 interface GigabitEthernet0/0/2
[CoreSW-vlan40]q port link-type access
[CoreSW]int vlanif 40 port default vlan 20
[CoreSW-Vlanif40]ip address 192.168.40.1 24 #
[CoreSW-Vlanif40]dhcp select interface interface GigabitEthernet0/0/3
[CoreSW-Vlanif40]q port link-type access
[CoreSW] port default vlan 20
[CoreSW]int g0/0/6 #
[CoreSW-GigabitEthernet0/0/6]port link-type access interface GigabitEthernet0/0/4
[CoreSW-GigabitEthernet0/0/6]port default vlan 40 port link-type access
[CoreSW-GigabitEthernet0/0/6] port default vlan 30
[CoreSW-GigabitEthernet0/0/6]q #
<CoreSW>save all interface GigabitEthernet0/0/5
The current configuration will be written to the port link-type access
device. port default vlan 30
Are you sure to continue?[Y/N]y #
Info: Please input the file name ( *.cfg, *.zip ) interface GigabitEthernet0/0/6
[vrpcfg.zip]: port link-type access
Nov 8 2024 23:44:59-08:00 port default vlan 40
Save the configuration successfully. #
<CoreSW>save all sw.cfg interface GigabitEthernet0/0/7
Are you sure to save the configuration to #
flash:/sw.cfg?[Y/N]:y interface GigabitEthernet0/0/8
Nov 8 2024 23:49:46-08:00 #
Now saving the current configuration to the slot 0. interface GigabitEthernet0/0/9
Save the configuration successfully. #
<CoreSW> interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 10.1.1.2
#
user-interface con 0
user-interface vty 0 4
#
return
[CoreSW]
<Huawei>sys <Huawei>sys
Enter system view, return user view with Ctrl+Z. Enter system view, return user view with Ctrl+Z.
[Huawei] [Huawei]
[Huawei] int g0/0/0 [Huawei]dis cu
[Huawei-GigabitEthernet0/0/0]ip address 10.1.1.2 24 [V200R003C00]
[Huawei-GigabitEthernet0/0/0]q #
[Huawei]ping 10.1.1.1 snmp-agent local-engineid 800007DB03000000000000
PING 10.1.1.1: 56 data bytes, press CTRL_C to break snmp-agent
Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 #
time=70 ms clock timezone China-Standard-Time minus 08:00:00
Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 #
time=30 ms portal local-server load flash:/portalpage.zip
Reply from 10.1.1.1: bytes=56 Sequence=3 ttl=255 #
time=10 ms drop illegal-mac alarm
Reply from 10.1.1.1: bytes=56 Sequence=4 ttl=255 #
time=30 ms wlan ac-global carrier id other ac id 0
Reply from 10.1.1.1: bytes=56 Sequence=5 ttl=255 #
time=30 ms set cpu-usage threshold 80 restore 75
#
--- 10.1.1.1 ping statistics --- aaa
5 packet(s) transmitted authentication-scheme default
5 packet(s) received authorization-scheme default
0.00% packet loss accounting-scheme default
round-trip min/avg/max = 10/34/70 ms domain default
domain default_admin
[Huawei]int LoopBack 0 local-user admin password
[Huawei-LoopBack0] cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
[Huawei-LoopBack0]ip add local-user admin service-type http
[Huawei-LoopBack0]ip address 8.8.8.8 24 #
[Huawei-LoopBack0] firewall zone Local
[Huawei-LoopBack0]q priority 15
[Huawei] #
[Huawei] interface Ethernet0/0/0
[Huawei]ip rout #
[Huawei]ip route interface Ethernet0/0/1
[Huawei]ip route-static 192.168.1.0 24 #
^ interface Ethernet0/0/2
Error:Incomplete command found at '^' position. #
[Huawei]ip route-static 192.168.1.0 24 10.1.1.1 interface Ethernet0/0/3
[Huawei] #
[Huawei] interface Ethernet0/0/4
[Huawei] #
[Huawei]ip route-static 192.168.2.0 24 10.1.1.1 interface Ethernet0/0/5
[Huawei] #
[Huawei] interface Ethernet0/0/6
[Huawei]bước này ping 8.8.8.8 trên PC xem có thông #
khôg interface Ethernet0/0/7
<Huawei>save all #
The current configuration will be written to the interface GigabitEthernet0/0/0
device. ip address 10.1.1.2 255.255.255.0
Are you sure to continue? (y/n)[n]:y #
It will take several minutes to save configuration interface GigabitEthernet0/0/1
file, please wait....... #
Configuration file had been saved successfully interface NULL0
Note: The configuration file will take effect after #
being activated interface LoopBack0
<Huawei> ip address 8.8.8.8 255.255.255.0
#
ip route-static 192.168.1.0 255.255.255.0 10.1.1.1
ip route-static 192.168.2.0 255.255.255.0 10.1.1.1
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
[Huawei]

You might also like