sexta-feira, 4 de outubro de 2013

Switch EN4093 - vLAG and VRRP config

Esse é um exemplo de configuração de VRRP com vLAG entre dois switches EN4093 de um Chassis IBM PureFlex com rotas estáticas para comunicação com outras redes.



Para essa configuração as seguintes definições foram feitas:

- Configurado somente VLAN1;
- vLAG entre as interfaces EXT1-EXT2 de ambos os SW;
- VRRP com IP virtual 10.10.10.1;
- SW1 com IP físico 10.10.10.2;
- SW2 com IP físico 10.10.10.3;
- Rotas estáticas para comunicação com outras redes.


Switch 01 - Configuração do vLAG/VRRP
Switch 02 - Configuração do vLAG/VRRP
#enable
#conf t

* Create trunk (dynamic or static) which is getting used as ISL

(config)# interface port EXT1-EXT2
(config-if)# tagging
(config-if)# lacp mode active
(config-if)# lacp key 200

*Create ISL VLAN and move ISL ports to dedicated VLAN (recommended 4094)

(config)# vlan 4094
(config-vlan)# enable
(config-vlan)# member EXT1-EXT2

*Turn STP off for the ISL in case it is getting used at the switch

(config)# show spanning-tree (verify stp number of vlan 4094)
(config)# no spanning-tree stp ?? enable
(config)# spanning-tree stp ?? vlan 4094
* ?? = number showing in command

* Create IP interface for the ISL

(config)# interface ip 100
(config-ip-if)# ip address 1.1.1.1 255.255.255.0
(config-ip-if)# vlan 4094
(config-ip-if)# enable

* Define VLAG peer relationship etc

(config)# vlag hlthchk peer-ip 1.1.1.2
(config)# vlag isl adminkey 200
(config)# vlag tier-id 10
(config)# vlag enable

* Configure interface IP to VRRP

(config)# interface ip 3
(config-ip-if)# ip address 10.10.10.2 255.255.255.0 
(config-ip-if)# vlan 1 
(config-ip-if)# enable
 (config-ip-if)# exit

* Configure VRRP
 

(config)# router vrrp 
(config)# enable
(config)# virtual-router 1 virtual-router-id 1 
(config)# virtual-router 1 interface 3 
(config)# virtual-router 1 address 10.10.10.1 
(config)# virtual-router 1 enable
(config)# virtual-router 1 priority 101 
(config)# exit

* Define default Gateway (data port)

(config)# ip gateway 1 address 10.10.10.254 enable

* Configure static route 

(config)#ip route 192.168.1.0 255.255.255.0 10.10.10.240
(config)#ip route 192.168.2.0 255.255.255.0 10.10.10.221 
(config)#ip route 192.168.3.0 255.255.255.0 10.10.10.2
 
* Save configuration

(config)# wr
#enable
#conf t

* Create trunk (dynamic or static) which is getting used as ISL

(config)# interface port EXT1-EXT2
(config-if)# tagging
(config-if)# lacp mode active
(config-if)# lacp key 200

*Create ISL VLAN and move ISL ports to dedicated VLAN (recommended 4094)

(config)# vlan 4094
(config-vlan)# enable
(config-vlan)# member EXT1-EXT2

*Turn STP off for the ISL in case it is getting used at the switch

(config)# show spanning-tree (verify stp number of vlan 4094)
(config)# no spanning-tree stp ?? enable
(config)# spanning-tree stp ?? vlan 4094
* ?? = number showing in command

* Create IP interface for the ISL

(config)# interface ip 100
(config-ip-if)# ip address 1.1.1.2 255.255.255.0
(config-ip-if)# vlan 4094
(config-ip-if)# enable

* Define VLAG peer relationship etc

(config)# vlag hlthchk peer-ip 1.1.1.1
(config)# vlag isl adminkey 200
(config)# vlag tier-id 10
(config)# vlag enable

* Configure interface IP to VRRP

(config)# interface ip 3
(config-ip-if)# ip address 10.10.10.3 255.255.255.0 
(config-ip-if)# vlan 1 
(config-ip-if)# enable
(config-ip-if)# exit

* Configure VRRP

(config)# router vrrp
(config)# enable 
(config)# virtual-router 1 virtual-router-id 1
(config)# virtual-router 1 interface 3 
(config)# virtual-router 1 address 10.10.10.1
(config)# virtual-router 1 enable
(config)# exit


* Define default Gateway (data port)

(config)# ip gateway 1 address 10.10.10.254 enable

* Configure static route

(config)#ip route 192.168.1.0 255.255.255.0 10.10.10.240 
(config)#ip route 192.168.2.0 255.255.255.0 10.10.10.221 
(config)#ip route 192.168.3.0 255.255.255.0 10.10.10.2
 
* Save configuration

(config)# wr



Nenhum comentário:

Postar um comentário