华为eNSP实验指南.docx
- 文档编号:6548440
- 上传时间:2023-01-07
- 格式:DOCX
- 页数:62
- 大小:226.07KB
华为eNSP实验指南.docx
《华为eNSP实验指南.docx》由会员分享,可在线阅读,更多相关《华为eNSP实验指南.docx(62页珍藏版)》请在冰豆网上搜索。
华为eNSP实验指南
VLAN的基础配置
VLAN最基本实验,1和3属于VLAN2,相互不通;2和4属于VLAN3,可以ping通。
=====================================================================
[SW1]dicu
#
sysnameSW1
#
vlanbatch2to3
#
clusterenable
ntdpenable
ndpenable
#
dropillegal-macalarm
#
diffservdomaindefault
#
drop-profiledefault
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordsimpleadmin
local-useradminservice-typehttp
#
interfaceVlanif1
#
interfaceMEth0/0/1
#
interfaceEthernet0/0/1
portlink-typeaccess
portdefaultvlan2
#
interfaceEthernet0/0/2
portlink-typeaccess
portdefaultvlan3
#
interfaceEthernet0/0/3
#
interfaceEthernet0/0/4
#
interfaceEthernet0/0/5
#
interfaceEthernet0/0/6
#
interfaceEthernet0/0/7
#
interfaceEthernet0/0/8
#
interfaceEthernet0/0/9
#
interfaceEthernet0/0/10
#
interfaceEthernet0/0/11
#
interfaceEthernet0/0/12
#
interfaceEthernet0/0/13
#
interfaceEthernet0/0/14
#
interfaceEthernet0/0/15
#
interfaceEthernet0/0/16
#
interfaceEthernet0/0/17
#
interfaceEthernet0/0/18
#
interfaceEthernet0/0/19
#
interfaceEthernet0/0/20
#
interfaceEthernet0/0/21
#
interfaceEthernet0/0/22
portlink-typetrunk
porttrunkallow-passvlan3
#
interfaceGigabitEthernet0/0/1
#
interfaceGigabitEthernet0/0/2
#
interfaceNULL0
#
user-interfacecon0
user-interfacevty04
#
Return
=====================================================================
[SW2]dicu
#
sysnameSW2
#
vlanbatch2to3
#
clusterenable
ntdpenable
ndpenable
#
dropillegal-macalarm
#
diffservdomaindefault
#
drop-profiledefault
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordsimpleadmin
local-useradminservice-typehttp
#
interfaceVlanif1
#
interfaceMEth0/0/1
#
interfaceEthernet0/0/1
portlink-typeaccess
portdefaultvlan2
#
interfaceEthernet0/0/2
portlink-typeaccess
portdefaultvlan3
#
interfaceEthernet0/0/3
#
interfaceEthernet0/0/4
#
interfaceEthernet0/0/5
#
interfaceEthernet0/0/6
#
interfaceEthernet0/0/7
#
interfaceEthernet0/0/8
#
interfaceEthernet0/0/9
#
interfaceEthernet0/0/10
#
interfaceEthernet0/0/11
#
interfaceEthernet0/0/12
#
interfaceEthernet0/0/13
#
interfaceEthernet0/0/14
#
interfaceEthernet0/0/15
#
interfaceEthernet0/0/16
#
interfaceEthernet0/0/17
#
interfaceEthernet0/0/18
#
interfaceEthernet0/0/19
#
interfaceEthernet0/0/20
#
interfaceEthernet0/0/21
#
interfaceEthernet0/0/22
portlink-typetrunk
porttrunkallow-passvlan3
#
interfaceGigabitEthernet0/0/1
#
interfaceGigabitEthernet0/0/2
#
interfaceNULL0
#
user-interfacecon0
user-interfacevty04
#
port-grouplink-type
#
return
VLAN间路由
注:
在pc1和pc2上面配置好ip地址和网关
=====================================================================
[SW1]dicu
#
sysnameSW1
#
vlanbatch2to3
#
clusterenable
ntdpenable
ndpenable
#
dropillegal-macalarm
#
diffservdomaindefault
#
drop-profiledefault
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordsimpleadmin
local-useradminservice-typehttp
#
interfaceVlanif1
#
interfaceVlanif2
ipaddress192.168.2.254255.255.255.0
#
interfaceVlanif3
ipaddress192.168.3.254255.255.255.0
#
interfaceMEth0/0/1
#
interfaceEthernet0/0/1
portlink-typeaccess
portdefaultvlan2
#
interfaceEthernet0/0/2
portlink-typeaccess
portdefaultvlan3
#
interfaceEthernet0/0/3
#
interfaceEthernet0/0/4
#
interfaceEthernet0/0/5
#
interfaceEthernet0/0/6
#
interfaceEthernet0/0/7
#
interfaceEthernet0/0/8
#
interfaceEthernet0/0/9
#
interfaceEthernet0/0/10
#
interfaceEthernet0/0/11
#
interfaceEthernet0/0/12
#
interfaceEthernet0/0/13
#
interfaceEthernet0/0/14
#
interfaceEthernet0/0/15
#
interfaceEthernet0/0/16
#
interfaceEthernet0/0/17
#
interfaceEthernet0/0/18
#
interfaceEthernet0/0/19
#
interfaceEthernet0/0/20
#
interfaceEthernet0/0/21
#
interfaceEthernet0/0/22
#
interfaceGigabitEthernet0/0/1
#
interfaceGigabitEthernet0/0/2
#
interfaceNULL0
#
user-interfacecon0
user-interfacevty04
#
return
=====================================================================
[R1]dicu
#
sysnameR1
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordcipherOOCM4m($F4ajUn1vMEIBNUw#
local-useradminservice-typehttp
#
firewallzoneLocal
priority16
#
interfaceEthernet0/0/0
#
interfaceEthernet0/0/0.1
vlan-typedot1q2
ipaddress192.168.2.254255.255.255.0
#
interfaceEthernet0/0/0.3
vlan-typedot1q3
ipaddress192.168.3.254255.255.255.0
#
interfaceEthernet0/0/1
#
interfaceSerial0/0/0
link-protocolppp
#
interfaceSerial0/0/1
link-protocolppp
#
interfaceSerial0/0/2
link-protocolppp
#
interfaceSerial0/0/3
link-protocolppp
#
interfaceGigabitEthernet0/0/0
#
interfaceGigabitEthernet0/0/1
#
interfaceGigabitEthernet0/0/2
#
interfaceGigabitEthernet0/0/3
#
wlan
#
interfaceNULL0
#
user-interfacecon0
user-interfacevty04
user-interfacevty1620
#
return
=====================================================================
[SW1]dicu
#
sysnameSW1
#
vlanbatch2to3
#
clusterenable
ntdpenable
ndpenable
#
dropillegal-macalarm
#
diffservdomaindefault
#
drop-profiledefault
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordsimpleadmin
local-useradminservice-typehttp
#
interfaceVlanif1
#
interfaceMEth0/0/1
#
interfaceEthernet0/0/1
portlink-typeaccess
portdefaultvlan2
#
interfaceEthernet0/0/2
portlink-typeaccess
portdefaultvlan3
#
interfaceEthernet0/0/3
#
interfaceEthernet0/0/4
#
interfaceEthernet0/0/5
#
interfaceEthernet0/0/6
#
interfaceEthernet0/0/7
#
interfaceEthernet0/0/8
#
interfaceEthernet0/0/9
#
interfaceEthernet0/0/10
#
interfaceEthernet0/0/11
#
interfaceEthernet0/0/12
#
interfaceEthernet0/0/13
#
interfaceEthernet0/0/14
#
interfaceEthernet0/0/15
#
interfaceEthernet0/0/16
#
interfaceEthernet0/0/17
#
interfaceEthernet0/0/18
#
interfaceEthernet0/0/19
#
interfaceEthernet0/0/20
#
interfaceEthernet0/0/21
portlink-typetrunk
porttrunkallow-passvlan2to4094
#
interfaceEthernet0/0/22
portlink-typetrunk
porttrunkallow-passvlan2to4094
#
interfaceGigabitEthernet0/0/1
#
interfaceGigabitEthernet0/0/2
#
interfaceNULL0
#
user-interfacecon0
user-interfacevty04
#
return
=====================================================================
[SW2]dicu
#
sysnameSW2
#
vlanbatch3
#
clusterenable
ntdpenable
ndpenable
#
dropillegal-macalarm
#
diffservdomaindefault
#
drop-profiledefault
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordsimpleadmin
local-useradminservice-typehttp
#
interfaceVlanif1
#
interfaceMEth0/0/1
#
interfaceEthernet0/0/1
portlink-typeaccess
portdefaultvlan3
#
interfaceEthernet0/0/2
#
interfaceEthernet0/0/3
#
interfaceEthernet0/0/4
#
interfaceEthernet0/0/5
#
interfaceEthernet0/0/6
#
interfaceEthernet0/0/7
#
interfaceEthernet0/0/8
#
interfaceEthernet0/0/9
#
interfaceEthernet0/0/10
#
interfaceEthernet0/0/11
#
interfaceEthernet0/0/12
#
interfaceEthernet0/0/13
#
interfaceEthernet0/0/14
#
interfaceEthernet0/0/15
#
interfaceEthernet0/0/16
#
interfaceEthernet0/0/17
#
interfaceEthernet0/0/18
#
interfaceEthernet0/0/19
#
interfaceEthernet0/0/20
#
interfaceEthernet0/0/21
#
interfaceEthernet0/0/22
portlink-typetrunk
porttrunkallow-passvlan2to4094
#
interfaceGigabitEthernet0/0/1
#
interfaceGigabitEthernet0/0/2
#
interfaceNULL0
#
user-interfacecon0
user-interfacevty04
#
return
静态路由
=====================================================================
[R1]dicu
#
sysnameR1
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordcipherOOCM4m($F4ajUn1vMEIBNUw#
local-useradminservice-typehttp
#
firewallzoneLocal
priority16
#
interfaceEthernet0/0/0
ipaddress12.1.1.1255.255.255.0
#
interfaceEthernet0/0/1
#
interfaceSerial0/0/0
link-protocolppp
#
interfaceSerial0/0/1
link-protocolppp
#
interfaceSerial0/0/2
link-protocolppp
#
interfaceSerial0/0/3
link-protocolppp
#
interfaceGigabitEthernet0/0/0
#
interfaceGigabitEthernet0/0/1
#
interfaceGigabitEthernet0/0/2
#
interfaceGigabitEthernet0/0/3
#
wlan
#
interfaceNULL0
#
interfaceLoopBack0
#
iproute-static23.1.1.0255.255.255.012.1.1.2
#
user-interfacecon0
user-interfacevty04
user-interfacevty1620
#
Return
=====================================================================
[R2]dicu
#
sysnameR2
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordcipherOOCM4m($F4ajUn1vMEIBNUw#
local-useradminservice-typehttp
#
firewallzoneLocal
priority16
#
interfaceEthernet0/0/0
ipaddress12.1.1.2255.255.255.0
#
interfaceEthernet0/0/1
ipaddress23.1.1.1255.255.255.0
#
interfaceSerial0/0/0
link-protocolppp
#
interfaceSerial0/
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 华为 eNSP 实验 指南
![提示](https://static.bdocx.com/images/bang_tan.gif)