时间:2021-07-01 10:21:17 帮助过:33人阅读
欢迎进入网络技术社区论坛,与200万技术人员互动交流 >>进入 5. 配置二层端口 5.1. 配置Trunk: Router(config)# interface fastethernet x/y (以fastethernet为例,gigabitethernet一样) Router(config-if)# shutdown Router(config-if)# switchport Route
欢迎进入网络技术社区论坛,与200万技术人员互动交流 >>进入
5. 配置二层端口
5.1. 配置Trunk:
Router(config)# interface fastethernet x/y (以fastethernet为例,gigabitethernet一样)
Router(config-if)# shutdown
Router(config-if)# switchport
Router(config-if)# switchport mode dynamic desirable
Router(config-if)# switchport trunk encapsulation dot1q
Router(config-if)# no shutdown
Router(config-if)# end
Router# exit
如果要配置二台6509之间的Trunk联接,首先将二6509用千兆光纤相联好,然后分别配置二相联端口的trunk,可以是只用一双光纤,或用二对光纤做port channel,配置如下:
一双光纤相联时,分别在二台65上进行以下的配置:
interface GigabitEthernet1/1
no ip address
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan 1
二对光纤做port channel,分别在二台65上进行以下的配置::
interface port-channe1
no ip address
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan 1
!
interface GigabitEthernet1/1
no ip address
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan 1
channel-group 1 mode on
!
interface GigabitEthernet1/2
no ip address
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan 1
channel-group 1 mode on
6. 配置HSRP
在其中一台65上按下面模版进行配置
interface Vlan x
ip address x.x.x.x x.x.x.x
no ip redirects
no ip directed-broadcast
standby 1 priority 100 preempt
standby 1 ip y.y.y.y
!
[1] [2] [3] [4]