ensp实验-基本操作
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验二、交换机端口配置
2.1.1端口常用配置
1、实验内容:华为系列以太网交换机物理端口常见配置;
2、实验目的:掌握华为系列以太网交换机物理端口常见命令及配置方法;
3、实验拓扑:
配置文件:
LSW1:
#
sysname Huawei
#
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
ip address 192.168.1.3 255.255.255.0 #
interface MEth0/0/1
#
interface Eth-Trunk1
#
interface Ethernet0/0/1
undo negotiation auto
speed 100
flow-control
description to_lsw2
eth-trunk 1
#
interface Ethernet0/0/2
undo negotiation auto
speed 100
flow-control
description to_lsw2
eth-trunk 1
#
interface Ethernet0/0/3
undo negotiation auto
speed 100
flow-control
description to_lsw2
eth-trunk 1
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
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
#
interface Ethernet0/0/22
#
interface GigabitEthernet0/0/1 #
interface GigabitEthernet0/0/2 #
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
LSW2:
#
sysname Huawei
#
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
ip address 192.168.1.2 255.255.255.0
#
interface MEth0/0/1
#
interface Eth-Trunk1 //创建聚合组1,并进入#
interface Ethernet0/0/1
undo negotiation auto
speed 100
flow-control
description to_lsw1
eth-trunk 1
#
interface Ethernet0/0/2
undo negotiation auto //关闭端口自协商模式 speed 100 //端口速率 100m/s flow-control //打开流量控制
description to_lsw1 //标注
eth-trunk 1 //加入聚合组1
#
interface Ethernet0/0/3
undo negotiation auto
speed 100
flow-control
description to_lsw1
eth-trunk 1
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5