时间:2023-11-23 19:02:10
1. 创建vlan<SWITCHA>system-view//进入系统模式[SWITCHA]vlanbatch23//批量新建vlan2和3
2. 创建vlanif三层接口作为PC电脑的网关IP地址[SWITCHA]interfaceVlanif2//进入三层vlanif10接口[SWITCHA-Vlanif2]ipaddress1.1.1.1255.255.255.0//此IP地址为HOSTA/B对应网关地址[SWITCHA-Vlanif2]quit//退出vlanif2接口[SWITCHA]interfaceVlanif3[SWITCHA-Vlanif3]ipaddress2.2.2.1255.255.255.0//此IP地址为HOSTC/D对应网关地址[SWITCHA-Vlanif3]quit
3. 接口加入相应vlan,SwitchA-----trunk------SwitchB[SWITCHA]interfaceGigabitEthernet0/0/1[SWITCHA-GigabitEthernet0/0/1]portlink-typetrunk//链路类型为trunk[SWITCHA-GigabitEthernet0/0/1]porttrunkallow-pass2to3//将接口划分到VLAN2和vlan3中[SWITCHA-GigabitEthernet0/0/1]quit
《多台交换机三层互联配置》不代表本网站观点,如有侵权请联系我们删除
精彩推荐