小白请教大神们
请教一个单臂路由连接两个二层交换机让不同vlan互通请问路由器怎么设置?最好把命令写上!谢谢int f0/0 路由器物理接口打开,并配置子接口,开启dot 1Q 关联Vlan,并配置网关地址,指令如下
Router#en
Router#conf t
Enter configuration commands, one per line.End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#ex
Router(config)#int g0/0.1
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.1, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation dot
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config-subif)#ex
页:
[1]