1、实验总结端口速率和双工配置讲解1. 端口速率和双工配置 端口速率和双工配置显示:disp culanguage-mode chinese 改变语言模式system-view 进入系统视图undo info-center enable 关闭信息中心提示systemname BJ-SYS-S5700-1 设置设备名称interface GigabitEthernet0/0/3 进入接口视图 undo negotiation auto 取消自动协商 speed 100 设置端口速率 duplex half 设置端口双工description kuandai 配置端口描述2. 端口链路聚合配置端口链路
2、聚合配置sysname SW1 更换名称undo info-center enable 关闭信息中心 interface Eth-Trunk0 创建聚合组interface GigabitEthernet0/0/1 进入端口视图 eth-trunk 0 将端口加入聚合组interface GigabitEthernet0/0/2 eth-trunk 0disp cudisp int eth-trunk 03. 交换机端口类型vlan配置Ping截图测试配置步骤:sysname sw1 设置设备名称vlan batch vlan 10 20interface GigabitEthernet0/0
3、/1 port link-type access 配置端口类型为access port default vlan 10 配置access端口的vlaninterface GigabitEthernet0/0/2 port link-type access port default vlan 20interface GigabitEthernet0/0/3 port link-type trunk 配置端口类型为trunk port trunk allow-pass vlan 10 20 配置trunk端口允许通过的vlaninterface GigabitEthernet0/0/4 port
4、link-type trunk 配置端口类型为trunk port trunk allow-pass vlan 2 to 4094 配置trunk端口允许通过的vlan4.以太网链路聚合步骤:interface Eth-Trunk0 创建聚合组interface GigabitEthernet0/0/3 进入端口视图 eth-trunk 0 将端口加入聚合组interface GigabitEthernet0/0/4 eth-trunk 0interface Eth-Trunk0 定义端口 port link-type trunk port trunk allow-pass vlan 10 2
5、0Ping截图5.三层交换机不同vlan互通步骤:language-mode chinese 改变语言模式system-view 进入系统视图sysname sw1 设置系统名称undo info-center enable vlan batch 10 20 创建vlaninterface Vlanif1 创建vlanifinterface Vlanif10 创建vlan 10的三层接口 ip address 10.1.1.1(网关号) 255.255.255.0 在vlan 10的三层接口下配置IP地址interface Vlanif20 创建vlan 10的三层接口 ip address
6、20.1.1.1(网关号) 255.255.255.0 在vlan 10的三层接口下配置IP地址interface GigabitEthernet0/0/1 进入端口视图 port link-type access 配置接口类型 port default vlan 10 配置接口vlaninterface GigabitEthernet0/0/2 port link-type access port default vlan 20实验验证ping结果:实现vlan之间路由的方法:1 用路由器物理接口连接不同的vlan2 单臂路由 (路由器+L2交换机)3 三层交换机(实现方法如上图所示)6.单
7、臂路由:步骤:language-mode chinese 改变语言模式system-view 进入系统视图sysname sw1 设置系统名称路由器: interface Ethernet 0/0/0.1 进入端口的子接口视图dot1q termination vid 10 用8021q协议封装vlan 10ip address 10.1.1.1 255.255.255.0给vlan10配置ipARP broadcast enable 在端口下把arp的广播方式使能interface Ethernet 0/0/0.2 进入端口的子接口视图dot1q termination vid 20 用80
8、21q协议封装vlan 10ip address 20.1.1.1 255.255.255.0给vlan20配置ipARP broadcast enable 在端口下把arp的广播方式使能交换机:language-mode chinese 改变语言模式system-view 进入系统视图sysname sw1 设置系统名称 vlan batch 10 20interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094#interface GigabitEthernet0/0/2 p
9、ort link-type access port default vlan 10#interface GigabitEthernet0/0/3 port link-type access port default vlan 20连接结果: 7.TELNET的password认证配置(用路由器) 步骤:客户端配置language-mode chinese 改变语言模式system-view 进入系统视图sysname kehuduaninterface GigabitEthernet0/0/0ip address 10.1.1.2 255.255.255.0服务器配置:步骤:language-
10、mode chinese 改变语言模式system-view 进入系统视图sysname fuwuqiinterface GigabitEthernet0/0/0 ip address 10.1.1.1 255.255.255.0user-interface vty 0 4authentication-mode password set authentication password simple HUAWEI在客户端验证,通过客户端远程登录到服务器 telnet 10.1.1.1连接结果:8.Dhcp的interface方式下发ipPC端运行结果:9.Dhcp的global方式下发ip步骤s
11、ysname r1dhcp enableip pool 1 创建地址池 gateway-list 10.1.1.1 配置网段的网关地址 network 10.1.1.0 mask 255.255.255.0 配置地址 excluded-ip-address 10.1.1.100 10.1.1.254 lease day 0 hour 3 minute 0 配置租期 dns-list 8.8.8.8 222.222.222.222 配置dnsinterface GigabitEthernet0/0/0 ip address 10.1.1.1 255.255.255.0 dhcp select g
12、lobal在接口下配置dhcp的全局地址运行结果:PCipconfigLink local IPv6 address.: fe80:5689:98ff:fe1d:277cIPv6 address.: : / 128IPv6 gateway.: :IPv4 address.: 10.1.1.99Subnet mask.: 255.255.255.0Gateway.: 10.1.1.1Physical address.: 54-89-98-1D-27-7CDNS server.: 8.8.8.8 222.222.222.222Pc端运行结果 10.项目一:步骤R:sysname raaainter
13、face GigabitEthernet0/0/0.1 dot1q termination vid 10 ip address 192.168.10.254 255.255.255.0 arp broadcast enableinterface GigabitEthernet0/0/0.2 dot1q termination vid 20 ip address 192.168.20.254 255.255.255.0 arp broadcast enables3700-1sysname s3700-1vlan batch 10 20interface Vlanif10 ip address 1
14、92.168.10.254 255.255.255.0 interface Vlanif20 ip address 192.168.20.254 255.255.255.0 interface Ethernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094interface Ethernet0/0/3undo negotiation auto speed 10 port link-type access port default vlan 10interface Ethernet0/0/4 undo negotia
15、tion auto speed 10 port link-type access port default vlan 20user-interface con 0user-interface vty 0 4sysname s3700-2vlan batch 10 20interface Vlanif10 ip address 192.168.10.254 255.255.255.0 interface Vlanif20 ip address 192.168.20.254 255.255.255.0 interface Ethernet0/0/1 port link-type trunk por
16、t trunk allow-pass vlan 2 to 4094interface Ethernet0/0/2 undo negotiation auto speed 100 duplex half port link-type access port default vlan 10interface Ethernet0/0/4 undo negotiation auto speed 100 duplex half port link-type access port default vlan 20user-interface con 0user-interface vty 0 4运行结果:
17、 11.帧中继的组网(动态映射)步骤:sysname R1interface Serial0/0/0 link-protocol fr ip address 10.1.1.1 255.255.255.0 fr interface-type dtefr inarp sysname R2interface Serial0/0/0 link-protocol fr ip address 10.1.1.2 255.255.255.0 fr interface-type dtefr inarp sysname R3interface Serial0/0/0 link-protocol fr ip add
18、ress 10.1.1.3 255.255.255.0 fr interface-type dtefr inarp dis cudis fr map-infodis fr pvc-info运行结果:12.帧中继组网(静态映射)步骤:sysname R1interface Serial0/0/0 link-protocol fr undo fr inarp fr map ip 10.1.1.2 102 fr map ip 10.1.1.3 103 ip address 10.1.1.1 255.255.255.0 sysname R2interface Serial0/0/0 link-prot
19、ocol fr 配置接口协议为帧中继 fr interface-type dte配置帧中继接口协议型 undo fr inarp取消帧中继的映射表(对端IP+本端DLCI) fr map ip 10.1.1.1 201 fr map ip 10.1.1.3 203 ip address 10.1.1.2 255.255.255.0 sysname R3interface Serial0/0/0 link-protocol fr undo fr inarp fr map ip 10.1.1.1 301 fr map ip 10.1.1.2 302 ip address 10.1.1.3 255.
20、255.255.013.项目二:步骤:sysname lsw1vlan batch 10 20ip pool 1 gateway-list 192.168.20.254 network 192.168.20.0 mask 255.255.255.0 excluded-ip-address 192.168.20.100 192.168.20.253 lease day 0 hour 3 minute 0 dns-list 8.8.8.8 222.222.222.222 interface Vlanif10 ip address 192.168.10.254 255.255.255.0 dhcp
21、select interface dhcp server excluded-ip-address 192.168.10.200 192.168.10.253 dhcp server lease day 0 hour 2 minute 30 dhcp server dns-list 8.8.8.8 114.114.114.114 interface Vlanif20 ip address 192.168.20.254 255.255.255.0 dhcp select globalinterface GigabitEthernet0/0/1 port link-type trunk port t
22、runk allow-pass vlan 2 to 4094sysname lsw2 vlan batch 10 20interface Eth-Trunk0 port link-type trunk port trunk allow-pass vlan 10 20 interface Ethernet0/0/2 eth-trunk 0interface Ethernet0/0/3 eth-trunk 0interface Ethernet0/0/4 port link-type access port default vlan 10interface Ethernet0/0/5 port l
23、ink-type access port default vlan 20sysname lsw3vlan batch 10 20interface Eth-Trunk0 port link-type trunk port trunk allow-pass vlan 10 20interface Ethernet0/0/2 eth-trunk 0interface Ethernet0/0/3 eth-trunk 0interface Ethernet0/0/4 port link-type access port default vlan 10interface Ethernet0/0/5 port link-type access port default vlan 20
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1