交换机A的配置:
vlan batch 20 30
#
interface Vlanif1
ip address 192.168.1.1 255.255.255.0
#
interface Vlanif20
ip address 192.168.20.1 255.255.255.0
#
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
interface Ethernet0/0/1
port link-type access
port default vlan 20
#
interface Ethernet0/0/2
port link-type access
port default vlan 30
rip 1
network 192.168.20.0
network 192.168.30.0
network 192.168.1.0
交换机的B配置
vlan batch 40
interface Vlanif1
ip address 192.168.1.2 255.255.255.0
#
interface Vlanif40
network 192.168.1.0
network 192.168.40.0
在两个交换配之间端口做trunk配置,并允许所有的vlan通过
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
|
不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流
GMT+8, 2025-11-7 10:15 , Processed in 0.029265 second(s), 15 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.