Huawei Switch configuration in Teaching and Research Section

Source: Internet
Author: User

<Quidway> system-view
[Quidway] sysname njupt
[Njupt] user-interface console 0
[Njupt-ui-console0] idle-timeout 0 0
[Njupt-ui-console0] quit
[Njupt] display user-interface console 0
[Njupt] interface Gigabit Ethernet 0/0/1
[Njupt-GigabitEthernet0/0/1] port link-type access
[Njupt-GigabitEthernet0/0/1] interface GigabitEthernet 0/0/2
[Njupt-GigabitEthernet0/0/2] port link-type access
[Njupt-GigabitEthernet0/0/2] interface GigabitEthernet 0/0/3
[Njupt-GigabitEthernet0/0/3] port link-type access
[Njupt-GigabitEthernet0/0/3] interface GigabitEthernet 0/0/4
[Njupt-GigabitEthernet0/0/4] port link-type access
[Njupt-GigabitEthernet0/0/4] interface GigabitEthernet 0/0/5
[Njupt-GigabitEthernet0/0/5] port link-type access
[Njupt-GigabitEthernet0/0/5] interface GigabitEthernet 0/0/6
[Njupt-GigabitEthernet0/0/6] port link-type access
[Njupt-GigabitEthernet0/0/6] interface GigabitEthernet 0/0/7
[Njupt-GigabitEthernet0/0/7] port link-type access
[Njupt-GigabitEthernet0/0/7] interface GigabitEthernet 0/0/8
[Njupt-GigabitEthernet0/0/8] port link-type access
[Njupt-GigabitEthernet0/0/8] interface GigabitEthernet 0/0/9
[Njupt-GigabitEthernet0/0/9] port link-type access
[Njupt-GigabitEthernet0/0/9] interface GigabitEthernet 0/0/10
[Njupt-GigabitEthernet0/0/10] port link-type access
[Njupt-GigabitEthernet0/0/10] interface GigabitEthernet 0/0/11
[Njupt-GigabitEthernet0/0/11] port link-type access
[Njupt-GigabitEthernet0/0/11] interface GigabitEthernet 0/0/12
[Njupt-GigabitEthernet0/0/12] port link-type access
[Njupt-GigabitEthernet0/0/12] interface GigabitEthernet 0/0/13
[Njupt-GigabitEthernet0/0/13] port link-type access
[Njupt-GigabitEthernet0/0/13] interface GigabitEthernet 0/0/14
[Njupt-GigabitEthernet0/0/14] port link-type access
[Njupt-GigabitEthernet0/0/14] interface GigabitEthernet 0/0/15
[Njupt-GigabitEthernet0/0/15] port link-type access
[Njupt-GigabitEthernet0/0/15] interface GigabitEthernet 0/0/16
[Njupt-GigabitEthernet0/0/16] port link-type access
[Njupt-GigabitEthernet0/0/16] interface GigabitEthernet 0/0/17
[Njupt-GigabitEthernet0/0/17] port link-type access
[Njupt-GigabitEthernet0/0/17] interface GigabitEthernet 0/0/18
[Njupt-GigabitEthernet0/0/18] port link-type access
[Njupt-GigabitEthernet0/0/18] interface GigabitEthernet 0/0/19
[Njupt-GigabitEthernet0/0/19] port link-type access
[Njupt-GigabitEthernet0/0/19] interface GigabitEthernet 0/0/20
[Njupt-GigabitEthernet0/0/20] port link-type access
[Njupt-GigabitEthernet0/0/20] interface GigabitEthernet 0/0/21
[Njupt-GigabitEthernet0/0/21] port link-type access
[Njupt-GigabitEthernet0/0/21] interface GigabitEthernet 0/0/22
[Njupt-GigabitEthernet0/0/22] port link-type access
[Njupt-GigabitEthernet0/0/22] interface GigabitEthernet 0/0/23
[Njupt-GigabitEthernet0/0/23] port link-type access
[Njupt-GigabitEthernet0/0/23] interface GigabitEthernet 0/0/24
[Njupt-GigabitEthernet0/0/24] port link-type access
[Njupt-GigabitEthernet0/0/24] quit
[Njupt] vlan 1
[Njupt-vlan1] port GigabitEthernet 0/0/1 to 0/0/24
[Njupt-vlan1] quit
[Njupt] dhcp enable
[Njupt] dhcp server ip-pool 0
[Njupt] dhcp server forbidden-ip 192.168.0.1
[Njupt-ip-pool-0] network 192.168.0.0 mask 255.255.255.0
[Njupt-ip-pool-0] gateway-list 192.168.0.1
[Njupt-ip-pool-0] quit
[Njupt] interface Vlanif 1
[Njupt-Vlanif1] ip address 192.168.0.1 255.255.255.0
[Njupt-Vlanif1] dhcp select global
[Njupt-Vlanif1] quit
[Njupt] quit
<Njupt> save

<Njupt> system-view
[Njupt] mac-authen
[Njupt] mac-authen interface GigabitEthernet 0/0/1 to 0/0/24
[Njupt] mac-authen username macaddress
[Njupt] aaa
[Njupt-aaa] local-user 7446a08fa396 password simple 7446a08fa396
[Njupt-aaa] local-user 7446a08fa396 service-type ppp
[Njupt-aaa] local-user 7446a09590f9 password simple 7446a09590f9
[Njupt-aaa] local-user 7446a095ce99 password simple 7446a095ce99
[Njupt-aaa] local-user 7446a0912ee0 password simple 7446a0912ee0
[Njupt-aaa] local-user 7446a0960e78 password simple 7446a0960e78
[Njupt-aaa] local-user 7446a0960e75 password simple 7446a0960e75
[Njupt-aaa] local-user 7446a093d64d password simple 7446a093d64d
[Njupt-aaa] local-user 7446a095915e password simple 7446a095915e
[Njupt-aaa] local-user 7446a0912ef3 password simple 7446a0912ef3
[Njupt-aaa] local-user 7446a09590ca password simple 7446a09590ca
[Njupt-aaa] local-user 7446a0912edb password simple 7446a0912edb
[Njupt-aaa] local-user 7446a090b2ce password simple 7446a090b2ce
[Njupt-aaa] local-user 7446a08fa39c password simple 7446a08fa39c
[Njupt-aaa] local-user 6c3be5154c77 password simple 6c3be5154c77
[Njupt-aaa] local-user 8851fb6b7eb1 password simple 8851fb6b7eb1
[Njupt-aaa] quit
[Njupt] quit
<Njupt> save

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.