“1+X中级E卷:网络管理2”的版本间的差异
来自CloudWiki
(→步骤1) |
(→配置mstp协议,vlan20为实例1,vlan17为实例2) |
||
(未显示同一用户的11个中间版本) | |||
第6行: | 第6行: | ||
===步骤1=== | ===步骤1=== | ||
====进入设备特殊模式==== | ====进入设备特殊模式==== | ||
− | system-view | + | :system-view |
+ | |||
====修改设备名==== | ====修改设备名==== | ||
− | sysname SW1 | + | :sysname SW1 |
− | + | ||
− | |||
====添加Vlan==== | ====添加Vlan==== | ||
+ | :vlan batch 17 20 | ||
+ | |||
+ | ====配置SW1交换机vlan20地址为172.17.20.253/24,配置vrrp虚拟网关为172.17.20.254,vrid为1,配置优先级为120==== | ||
+ | :interface Vlanif 20 | ||
+ | ::ip address 172.17.20.253 24 | ||
+ | ::vrrp vrid 1 virtual-ip 172.17.20.254 | ||
+ | ::vrrp vrid 1 priority 120 | ||
+ | ::quit | ||
+ | |||
+ | ====配置vlan17地址为172.17.17.253/24,配置vrrp虚拟网关为172.17.17.254,vrid为2==== | ||
+ | :interface Vlanif 17 | ||
+ | ::ip address 172.17.17.253 24 | ||
+ | ::vrrp vrid 2 virtual-ip 172.17.17.254 | ||
+ | ::quit | ||
===步骤2=== | ===步骤2=== | ||
+ | ====配置mstp协议,vlan20为实例1,vlan17为实例2==== | ||
+ | :stp region-configuration | ||
+ | ::region-name RG1 | ||
+ | ::instance 1 vlan 20 | ||
+ | ::instance 2 vlan 17 | ||
+ | ::quit | ||
+ | |||
+ | ====vlan20在SW1上为主,vlan17在SW1上为备==== | ||
+ | :stp instance 1 root primary | ||
+ | :stp instance 2 root secondary | ||
+ | :stp pathcost-standard legacy | ||
+ | :stp enable |
2020年11月30日 (一) 15:03的最新版本
目录
题目
配置SW1交换机vlan20地址为172.17.20.253/24,配置vrrp虚拟网关为172.17.20.254, vrid为1,配置优先级为120。配置vlan17地址为172.17.17.253/24,配置vrrp虚拟网关为172.17.17.254,vrid为2。配置mstp协议,vlan20为实例1,vlan17为实例2,vlan20在SW1上为主,vlan17在SW1上为备。将上述操作命令以文本形式提交到答题框。
操作步骤
文字+ 输出结果
步骤1
进入设备特殊模式
- system-view
修改设备名
- sysname SW1
添加Vlan
- vlan batch 17 20
配置SW1交换机vlan20地址为172.17.20.253/24,配置vrrp虚拟网关为172.17.20.254,vrid为1,配置优先级为120
- interface Vlanif 20
- ip address 172.17.20.253 24
- vrrp vrid 1 virtual-ip 172.17.20.254
- vrrp vrid 1 priority 120
- quit
配置vlan17地址为172.17.17.253/24,配置vrrp虚拟网关为172.17.17.254,vrid为2
- interface Vlanif 17
- ip address 172.17.17.253 24
- vrrp vrid 2 virtual-ip 172.17.17.254
- quit
步骤2
配置mstp协议,vlan20为实例1,vlan17为实例2
- stp region-configuration
- region-name RG1
- instance 1 vlan 20
- instance 2 vlan 17
- quit
vlan20在SW1上为主,vlan17在SW1上为备
- stp instance 1 root primary
- stp instance 2 root secondary
- stp pathcost-standard legacy
- stp enable