我一直在摆弄 Cisco ASR901 一段时间,但我无法将其配置为第 2 层 VLAN 交换机。不能将其千兆以太网端口之一配置为中继吗?我无法使用switchport trunk配置或创建VLAN. 我注意到我可以配置一个interface vlan,但后来我发现这不是一回事。我什至不知道如何为特定 VLAN 指定端口。
是否可以将 Cisco ASR901 配置为第 2 层 VLAN 交换机?
网络工程
转变
局域网
联网
2022-02-11 00:19:22
1个回答
不,那些是路由器,不是交换机。您可以在路由器接口上使用子接口将第 3 层接口作为到外部交换机的中继连接到单独的网络 (VLAN):
interface GigabitEthernet0/0/0
no shutdown
!
interface GigabitEthernet0/0/0.10
encapsulation dot1Q 10 ! Tag traffic for VLAN 10
ip address 10.0.10.0 255.255.255.0 ! Gateway for VLAN 10
no shutdown
!
interface GigabitEthernet0/0/0.20
encapsulation dot1Q 20 ! Tag traffic for VLAN 20
ip address 10.0.20.0 255.255.255.0 ! Gateway for VLAN 20
no shutdown
!
! etc.
其它你可能感兴趣的问题