实验总结端口速率和双工配置讲解Word文档下载推荐.docx
《实验总结端口速率和双工配置讲解Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《实验总结端口速率和双工配置讲解Word文档下载推荐.docx(18页珍藏版)》请在冰豆网上搜索。
interfaceEth-Trunk0创建聚合组
interfaceGigabitEthernet0/0/1进入端口视图
eth-trunk0将端口加入聚合组
interfaceGigabitEthernet0/0/2
eth-trunk0
dispinteth-trunk0
3.交换机端口类型vlan配置
Ping截图测试
配置步骤:
sysnamesw1设置设备名称
vlanbatchvlan1020
interfaceGigabitEthernet0/0/1
portlink-typeaccess配置端口类型为access
portdefaultvlan10配置access端口的vlan
portlink-typeaccess
portdefaultvlan20
interfaceGigabitEthernet0/0/3
portlink-typetrunk配置端口类型为trunk
porttrunkallow-passvlan1020配置trunk端口允许通过的vlan
interfaceGigabitEthernet0/0/4
porttrunkallow-passvlan2to4094配置trunk端口允许通过的vlan
4.以太网链路聚合
步骤:
interfaceGigabitEthernet0/0/3进入端口视图
interfaceEth-Trunk0定义端口
portlink-typetrunk
porttrunkallow-passvlan1020
Ping截图
5.三层交换机不同vlan互通
sysnamesw1设置系统名称
undoinfo-centerenable
vlanbatch1020创建vlan
interfaceVlanif1创建vlanif
interfaceVlanif10创建vlan10的三层接口
ipaddress10.1.1.1(网关号)255.255.255.0在vlan10的三层接口下配置IP地址
interfaceVlanif20创建vlan10的三层接口
ipaddress20.1.1.1(网关号)255.255.255.0在vlan10的三层接口下配置IP地址
portlink-typeaccess配置接口类型
portdefaultvlan10配置接口vlan
实验验证ping结果:
实现vlan之间路由的方法:
1.用路由器物理接口连接不同的vlan
2.单臂路由(路由器+L2交换机)
3.三层交换机(实现方法如上图所示)
6.单臂路由:
路由器:
interfaceEthernet0/0/0.1进入端口的子接口视图
dot1qterminationvid10用8021q协议封装vlan10
ipaddress10.1.1.1255.255.255.0给vlan10配置ip
ARPbroadcastenable在端口下把arp的广播方式使能
interfaceEthernet0/0/0.2进入端口的子接口视图
dot1qterminationvid20用8021q协议封装vlan10
ipaddress20.1.1.1255.255.255.0给vlan20配置ip
交换机:
vlanbatch1020
interfaceGigabitEthernet0/0/1
porttrunkallow-passvlan2to4094
#
portdefaultvlan10
连接结果:
7.TELNET的password认证配置(用路由器)
客户端配置
sysnamekehuduan
interfaceGigabitEthernet0/0/0
ipaddress10.1.1.2255.255.255.0
服务器配置:
sysnamefuwuqi
ipaddress10.1.1.1255.255.255.0
user-interfacevty04
authentication-modepassword
setauthenticationpasswordsimpleHUAWEI
在客户端验证,通过客户端远程登录到服务器
<
kehuduan>
telnet10.1.1.1
8.Dhcp的interface方式下发ip
PC端运行结果:
9.Dhcp的global方式下发ip
步骤sysnamer1
dhcpenable
ippool1创建地址池
gateway-list10.1.1.1配置网段的网关地址
network10.1.1.0mask255.255.255.0配置地址
excluded-ip-address10.1.1.10010.1.1.254
leaseday0hour3minute0配置租期
dns-list8.8.8.8222.222.222.222配置dns
ipaddress10.1.1.1255.255.255.0
dhcpselectglobal在接口下配置dhcp的全局地址
运行结果:
PC>
ipconfig
LinklocalIPv6address...........:
fe80:
:
5689:
98ff:
fe1d:
277c
IPv6address......................:
:
/128
IPv6gateway......................:
IPv4address......................:
10.1.1.99
Subnetmask.......................:
255.255.255.0
Gateway...........................:
10.1.1.1
Physicaladdress..................:
54-89-98-1D-27-7C
DNSserver........................:
8.8.8.8
222.222.222.222
Pc端运行结果
10.项目一:
步骤
R:
sysnamer
aaa
interfaceGigabitEthernet0/0/0.1
dot1qterminationvid10
ipaddress192.168.10.254255.255.255.0
arpbroadcastenable
interfaceGigabitEthernet0/0/0.2
dot1qterminationvid20
ipaddress192.168.20.254255.255.255.0
s3700-1
sysnames3700-1
interfaceVlanif10
interfaceVlanif20
interfaceEthernet0/0/2
interfaceEthernet0/0/3
undonegotiationauto
speed10
interfaceEthernet0/0/4
undonegotiationauto
user-interfacecon0
sysnames3700-2
interfaceEthernet0/0/1
speed100
duplexhalf
11.帧中继的组网(动态映射)
sysnameR1
interfaceSerial0/0/0
link-protocolfr
frinterface-typedte
frinarp
sysnameR2
ipaddress10.1.1.2255.255.255.0
sysnameR3
ipaddress10.1.1.3255.255.255.0
discu
disfrmap-info
disfrpvc-info
12.帧中继组网(静态映射)
undofrinarp
frmapip10.1.1.2102
frmapip10.1.1.3103
link-protocolfr配置接口协议为帧中继
frinterface-typedte配置帧中继接口协议型
undofrinarp取消帧中继的映射表(对端IP+本端DLCI)
frmapip10.1.1.1201
frmapip10.1.1.3203
frmapip10.1.1.1301
frmapip10.1.1.2302
ipaddress10.1.1.3255.255.255.0
13.项目二:
步骤:
sysnamelsw1
ippool1
gateway-list192.168.20.254
network192.168.20.0mask255.255.255.0
excluded-ip-address192.168.20.100192.168.20.253
leaseday0hour3minute0
dns-list8.8.8.8222.222.222.222
dhcpselectinterface
dhcpserverexcluded-ip-address192.168.10.200192.168.10.253
dhcpserverleaseday0hour2minute30
dhcpserverdns-list8.8.8.8114.114.114.114
dhcpselectglobal
sysnamelsw2
vlanbatch1020
interfaceEth-Trunk0
interfaceEthernet0/0/2
interfaceEthernet0/0/5
sysnamelsw3