【cisco】_vlan划分_链路聚合_配置步骤

ip地址常识: 以太网利用mac地址标志网络中的一个节点。

  • 单交换机vlan配置:
show vlan      //查看vlan
vlan 10     //创建vlan10,并进入。 	 [no vlan 10 //删除vlan 10]
[name CWB       //为vlan 指定名称]
interface range fastethernet0/1-10 
switchport access vlan 10        //将端口成员添加到vlan 10中。              [no switchport access vlan 10 //从vlan10删除端口成员]
  • 跨交换机的vlan配置:
    原理:相同vlan可以ping通,不同vlanping不通。

[A 交换机]:

vlan 10
vlan 20
interface range fastethernet0/1-5
switchport access vlan 10
interfaec range fastethernet0/6-10
switchport access vlan 20

interface gigabitethernet 1/1
switchport trunk encapsulation dot1q
switcgport mode trunk
switchport trunk allowed vlan 10,20

[B交换机]:

vlan 10
vlan 20
interface range fastethernet 0/1-5
switchport access vlan 10
interface range fastethernet 0/6-10
switchport access vlan 20


interface gigabitethernet 1/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10,20

[查看配置]:

show interfaces trunk
  • 链路聚合技术 和 IEEE802.3ad
    [A]:
interface range  fastethernet0/1-2
channel-protocol lacp   //设置链路聚合协议lacp
channel-group 1 mode active  //链路聚合的通道组1,激活模式

[B]

interface range fastethernet0/23-24
channel-protocol lacp
channel-group 1 mode active

[查看配置]:

show etherchannel summary
  • 拓展:把聚合后的链路作为trunk链路
vlan 10
vlan 20
interface port-channel 1  //进入端口通道配置模式
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 10,20

你可能感兴趣的:(工具环境部署类的)