100积分求 DELL 交换机 命令的含义 1/g21

来源:百度知道 编辑:UC知道 时间:2024/05/19 15:10:21
console#conf
console(config)#interface ethernet 1/g21
console(config-if-1/g21)#switchport trunk allowed vlan remove 2-3
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if-1/g21)#switchport mode access
console(config-if-1/g21)#switchport mode access
console(config-if-1/g21)#exit
console(config)#interface range ethernet 1/g21-1/g22
console(config-if)#channel-group 1 mode on
console(config-if)#channel-group 1 mode on
console(config-if)#exit
console(config)#interface port-channel 1
console(config-if-ch1)#switchport mode trunk
console(config-if-ch1)#switchport mode trunk
console(config-if-ch1)#switchport trunk allowed vlan add 2-3
如上 其中的 1/g21 具体是什么意思 代表哪个端口
switchport mode access 又有什么作用
另外 这个要实现 创建Link Aggregation(LAG) 最后一句是必须的吗?一定要允许2个VLAN 通过吗?如果要只让他们通过一个 VLAN (比如说 vlan2) 怎么写呢? 谢谢
如上 其中的 1/g21 具体是什么意思 代表哪

g21是端口号吧
你说的ethernet 1/0/1,第一个1代表堆叠交换机的第2个,0代表交换机的插槽或者模块,最后一个1代表模块上具体是哪个端口
switchport mode access 意思是将当前的端口设置为接入模式,用来将当前的端口加入VLAN,注意与trunk模式(中继模式)的区别

Link Aggregation(LAG) 意思是开启链路自动协商,不是必须的,但是如果配置了可以省很多事;举例说明:如果一条线连接了2台交换机,两端设置了此命令,并配置了接口的模式为trunk(switchport mode dyanme auto和swithpost mode access命令除外),那么这条链路就将动态协商能中继链路

trunk线路默认是允许所有的VLAN通过,只让VLAN2通过可以使用
Switch(config-if)#switchport trunk allowed vlan remove 不允许通过的VLAN-ID

您好
switchport allowed vlan
使用这个命令在选定的接口上配置vlan组,使用no的形式恢复默认值。

语法

switchport allowed vlan {add vlan [tagged | untagged] | remove vlan}

no switchport allowed vlan

1 add vlan--所要添加的vlan标识符

2 remove vlan--所要删除的vlan标识符

默认设置

所有的端口被分配到vlan 1

帧类型未加标记

命令模式

接口配置

命令的使用

1 如果交换机端口模式设置为trunk,那么你只能分配一个接口到vlan组作为未加标记的成员。

2 帧总是在交换机中被加标记。加标记和未加标记的参数用于告知交换机是否从进口处的帧保留或除去标记。

3 如果链接