教研室华为交换机配置

<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 GigabitEthernet 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

你可能感兴趣的:(华为交换机)