S5324-2,S5700,S5300华为交换机配置实例
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
#
sysname Huawei
#
vlan batch 2 to 3
#
stp instance 0 root primary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
ip address 192.168.0.238 255.255.255.0
dhcp select interface
dhcp server excluded-ip-address 192.168.0.1 192.168.0.20
dhcp server excluded-ip-address 192.168.0.240 192.168.0.254
dhcp server dns-list 202.96.209.133
#
interface Vlanif2
ip address 192.168.2.254 255.255.255.0
dhcp select interface
dhcp server excluded-ip-address 192.168.2.1 192.168.2.20
dhcp server excluded-ip-address 192.168.2.240 192.168.2.253
dhcp server dns-list 8.8.8.8
#
interface Vlanif3
ip address 192.168.3.254 255.255.255.0
dhcp select interface
dhcp server excluded-ip-address 192.168.3.1 192.168.3.20
dhcp server excluded-ip-address 192.168.3.240 192.168.3.253
dhcp server dns-list 8.8.4.4
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
description vlan 1
port link-type access
#
interface GigabitEthernet0/0/2
description vlan 2
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/3
description vlan 3
port link-type access
port default vlan 3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
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 192.168.0.254
#
user-interface con 0
user-interface vty 0 4
#
return