不可以,交换机不能配置为 ISR 的一部分。交换机堆栈可以像单个交换机一样进行配置,但交换机堆栈和 ISR 将是两个独立的网络设备,并且每个设备都是单独配置的。
我不知道你为什么会按照你的绘画描绘的方式去做。通过将交换机直接连接到 ISP,您会使它们容易受到来自 Internet 的攻击。ISR 具有用于连接到 WAN 的模块的 NIM 插槽。这就是您应该用于 ISP 连接的内容。
编辑:
根据您的评论,这是连接到交换机中继的棒上路由器方法的示例:
interface GigabitEthernet0/0/0
no ip address
no shutdown
interface GigabitEthernet0/0/0.10
description Subinterface for VLAN 10
encapsulation dot1Q 10
ip address 10.0.10.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no shutdown
interface GigabitEthernet0/0/0.20
description Subinterface for VLAN 20
encapsulation dot1Q 20
ip address 10.0.20.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no shutdown
interface GigabitEthernet0/0/0.30
description Subinterface for VLAN 30
encapsulation dot1Q 30
ip address 10.0.30.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no shutdown
如果这些是不同的客户,并且您不希望他们能够访问彼此的网络,您将需要创建 ACL 来阻止它。例如,如果您的 LAN 接口的 IP 地址为10.11.12.13,则您可能有一个 ACL,它只允许客户的流量到达该网络:
ip access-list 10
permit any 10.11.12.0 0.0.0.255
您在所有客户子界面上应用访问列表入站。