华为eNSP实验指南
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
VLAN的基础配置
VLAN最基本实验,1和3属于VLAN2,相互不通;2和4属于VLAN3,可以ping通。
===================================================================== [SW1]di cu
#
sysname SW1
#
vlan batch 2 to 3
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
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
#
interface MEth0/0/1
#
interface Ethernet0/0/1
port link-type access
port default vlan 2
#
interface Ethernet0/0/2
port link-type access
port default vlan 3
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
#
interface Ethernet0/0/8 #
interface Ethernet0/0/9 #
interface Ethernet0/0/10 #
interface Ethernet0/0/11 #
interface Ethernet0/0/12 #
interface Ethernet0/0/13 #
interface Ethernet0/0/14 #
interface Ethernet0/0/15 #
interface Ethernet0/0/16 #
interface Ethernet0/0/17 #
interface Ethernet0/0/18 #
interface Ethernet0/0/19 #
interface Ethernet0/0/20 #
interface Ethernet0/0/21 #
port link-type trunk
port trunk allow-pass vlan 3
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
Return
===================================================================== [SW2]di cu
#
sysname SW2
#
vlan batch 2 to 3
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
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
#
interface MEth0/0/1
#
interface Ethernet0/0/1
port link-type access
port default vlan 2
#
interface Ethernet0/0/2
port link-type access
port default vlan 3
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#