2016年1月22日 星期五

Arista DCS-7050S Q-in-Q Configuration


  • Topology:


  • Arista SW1 Configuration:
//Connected to Cisco SW1

#interface Ethernet 1

#switch access vlan 123

#switchport mode dot1q-tunnel

//Connected to Arista SW2

#interface Ethernet 49

#switchport mode trunk

  • Arista SW2 Configuration:

//Connected to Cisco SW2

#interface Ethernet 1

#switch access vlan 123

#switchport mode dot1q-tunnel

//Connected to Arista SW1

#interface Ethernet 49

#switchport mode trunk

  • Cisco SW1 Configuration:
//Connected to Arista SW1

#interface GigabitEthernet1/0/25

#switchport trunk encapsulation dot1q

#switchport trunk allowed vlan 1

#switchport mode trunk

//設定IP

#interface Vlan1

#ip address 192.168.12.1 255.255.255.0

  • Cisco SW2 Configuration:

//Connected to Arista SW2

#interface GigabitEthernet1/0/25

#switchport trunk encapsulation dot1q

#switchport trunk allowed vlan 1

#switchport mode trunk

//設定IP

#interface Vlan1

#ip address 192.168.12.2 255.255.255.0

Cisco Nexus3064X vPC Configuration


  • Topology:



  • Cisco SW1 Configuration:

//開啟vPC功能

#feature vpc

//設定vPC domain ID

#vpc domain 10

#peer-switch

#peer-gateway

//建立peer keepalive link

#interface Ethernet 1/1

#no switchport

#ip address 192.168.100.1/24

#peer-keepalive destination 192.168.100.2 source 192.168.100.1 vrf default

//設定Peer Link

# interface range Ethernet 1/44 – 47

#channel-group 7 mode active

#interface port-channel 7

#switchport mode trunk

#spanning-tree port type network

#vpc peer-link

//設定vPC

#interface Ethernet 1/2

#channel-group 50 mode active

#interface port-channel 50

#vpc 50
  • Cisco SW2 Configuration:

//開啟vPC功能

#feature vpc

//設定vPC domain ID

#vpc domain 10

#peer-switch

#peer-gateway

//建立peer keepalive link

#interface Ethernet 1/1

#no switchport

#ip address 192.168.100.2/24

#peer-keepalive destination 192.168.100.1 source 192.168.100.2 vrf default

//設定Peer Link

# interface range Ethernet 1/44 – 47

#channel-group 7 mode active

#interface port-channel 7

#switchport mode trunk

#spanning-tree port type network

#vpc peer-link

//設定vPC

#interface Ethernet 1/2

#channel-group 50 mode active

#interface port-channel 50

#vpc 50
  • Cisco 3750 Configuration:

//建立port-channel

#interface range GigabitEthernet 1/0/25 - 26

#channel-protocol lacp

#channel-group 1 mode active

Arista DCS-7050S MLAG Configuration



  • Topology:

  • Arista SW1 Configuration:

//建立Peer Link

#vlan 4094

#no spanning-tree vlan 4094

#trunk group mlagpeer

#interface Ethernet 49 – 50

#channel-group 10 mode active

#interface port-channel 10

#switchport mode trunk

#switchport trunk group mlagpeer

//設定SVI提供peer雙方溝通用

#interface vlan 4094

#ip address 10.0.0.1/24

#no autostate

//設定MLAG

#mlag configuration

#local-interface vlan 4094

#peer-address 10.0.0.2

#peer-link port-channel 10

#domain-id mlagDomain

//設定MLAG interface

#interface Ethernet 45

#channel-group 1 mode active

#interface port-channel 1

#switchport mode trunk

#mlag 1
  • Arista SW2 Configuration:

//建立Peer Link

#vlan 4094

#no spanning-tree vlan 4094

#trunk group mlagpeer

#interface Ethernet 49 – 50

#channel-group 10 mode active

#interface port-channel 10

#switchport mode trunk

#switchport trunk group mlagpeer

//設定SVI提供peer雙方溝通用

#interface vlan 4094

#ip address 10.0.0.2/24

#no autostate

//設定MLAG

#mlag configuration

#local-interface vlan 4094

#peer-address 10.0.0.1

#peer-link port-channel 10

#domain-id mlagDomain

//設定MLAG interface

#interface Ethernet 45

#channel-group 1 mode active

#interface port-channel 1

#switchport mode trunk

#mlag 1

  • Cisco 3750 Configuration:

//建立port-channel

#interface range GigabitEthernet 1/0/25 - 26

#channel-protocol lacp

#channel-group 1 mode active