(急) 为交换机配置问题

来源:百度知道 编辑:UC知道 时间:2024/06/26 03:21:19
<Quidwqy>system
password:
[Quidway]interface ethernet0
[Quidway-Ethernet0]ip addr 10.65.1.2 255.255.255.0
[Quidway-Ethernet1]ip addr 10.66.1.2 255.255.255.0 secondary
[Quidway-Ethernet1]undo shutdown

[root@PCA root]#ping 10.66.1.1 通

2.划分两个子接口,对两个vlan的路由
[SwitchA]vlan 2
[SwitchA-vlan2]port e0/3
[SwitchA]vlan 3
[SwitchA-vlan3]port e0/6
[SwitchA]ine e0/1
[SwitchA-Ethernet0/1]port link-type trunk
[SwitchA-Ethernet0/1]port trunk permit vlan all
[SwitchA-Ethernet0/1]port trunk encap dot1q(???)
[SwitchA]dis curr

[Quidway]int e0
[SwitchA-Ethernet0]int e0.1(??)
[SwitchA-Ethernet0.1]encapsulation dot1q 2(这个是什么意思啊!2代表什么)
[SwitchA-Ethernet0.1]ip addr 10.65.1.2 255.255.255.0
[SwitchA-Ethernet0.1]nudo shut
[SwitchA-Ethernet0.1]int e0.2
[SwitchA-Ethernet0.2]encapsulation dot1q 2(??)
[SwitchA-Ethernet0.2]ip addr 10.66.1.2 255.255.255.0
[SwitchA-Ethernet0

[SwitchA-Ethernet0/1]port trunk encap dot1q(在TRUNK封装DOT1Q协议)
[SwitchA-Ethernet0]int e0.1(进入e0的子接口 0.1)
[SwitchA-Ethernet0.1]encapsulation dot1q 2(封装DOT1Q协议 这是单臂路由 这里的2不应该和下面相同 下面设为3)

晕死``我以前玩交换机还厉害子的```空了三四年没摸那种东西``都忘记了``看来我要捡起来复习复习了``