procedures:upgrade_vxlan
Ceci est une ancienne révision du document !
Table des matières
Check list avant le départ
- La configuration des switches a été modifiée (IP alarig → grifon)
- Sac optiques
- Sac jarretières
- X201
- Tournevis
- Câbles RJ-45
- Adaptateur série
- Étiqueteuse avec des piles
- Un laptop sous windows si faut reconfigurer des optiques
Ports admin sur sw04 :
alarig@x280 ~ % host sw04.grif grif has DNAME record adm.grifon.fr. sw04.grif is an alias for sw04.adm.grifon.fr. sw04.adm.grifon.fr has address 172.17.0.54
Gi1/0/9→ alarig172.17.0.69/24Gi1/0/10→ evann172.17.0.53/24
Offload `asbr02`
alarig@x280 ~ % host asbr02.grif grif has DNAME record adm.grifon.fr. asbr02.grif is an alias for asbr02.adm.grifon.fr. asbr02.adm.grifon.fr has address 172.17.0.10
VRRP
rc-service keepalived stop
IGP
vim /etc/bird.conf.d/protocol_ospf/ospf_ipv4.conf -> commenter les costs de prod -> décommenter les costs d’offload birdc configure
BGP
birdc disable "bgp_*"
Migration de l’IX
Bien vérifier l’étiquetage des ports avant de les débrancher.
Te1/0/1 Core: interco TDF [DWDM ER CH35] -> Et46 Te1/0/2 Core: interco cogent02 -> Et47 Te1/0/8 Cust: grifon sw04 -> evpn Te1/0/9 Cust: BretagneTelecom -> Et25 Te1/0/10 Core: interco nantes via lugos -> Et26 Te1/0/12 Cust: gizmo -> Et2 lag Te1/0/13 Cust: alkante -> Et27 Te1/0/14 Cust: atlasip -> Et28 Te1/0/16 Cust: grifon asbr02 -> Et1 lag Te1/0/18 Cust: Icodia -> Et29 Te1/0/20 Core: rt-xco -> Et30 lag Te1/0/22 Cust: alarig -> Et3 lag
Configuration à effectuer pendant le re-branchement des ports
LAG `asbr02` (port Et1)
asbr02 ~ # lldpctl
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eno2, alias: Core: admin via sw04.grif Gi1/0/17, via: LLDP, RID: 3, Time: 5 days, 19:57:45
Chassis:
ChassisID: mac 00:23:34:02:88:80
SysName: sw04.grif
SysDescr: Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 15.0(2)SE10a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Thu 03-Nov-16 14:17 by prod_rel_team
MgmtIP: 172.17.0.54
Capability: Bridge, on
Capability: Router, off
Port:
PortID: ifname Gi1/0/17
PortDescr: GigabitEthernet1/0/17
TTL: 120
PMD autoneg: supported: yes, enabled: yes
Adv: 10Base-T, HD: yes, FD: yes
Adv: 100Base-TX, HD: yes, FD: yes
Adv: 1000Base-T, HD: no, FD: yes
MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode
VLAN: 40, pvid: yes
-------------------------------------------------------------------------------
Interface: enp8s0f0, alias: Core: sw05 Ethernet1/1/1, via: LLDP, RID: 1, Time: 5 days, 19:58:07
Chassis:
ChassisID: mac cc:4e:24:85:9b:ce
SysName: sw05.grif
MgmtIP: 172.17.0.55
MgmtIface: 2049
Capability: Bridge, on
Port:
PortID: mac cc:4e:24:85:9b:ce
PortDescr: 10GigabitEthernet1/1/1
TTL: 120
MFS: 10200
PMD autoneg: supported: yes, enabled: no
MAU oper type: unknown
VLAN: 1, pvid: yes
-------------------------------------------------------------------------------
Interface: enp10s0f4, alias: Core: asterix Te1/0/16, via: LLDP, RID: 2, Time: 5 days, 19:57:56
Chassis:
ChassisID: mac f4:8e:38:42:28:52
SysName: asterix
Port:
PortID: ifname Te1/0/16
PortDescr: Cust: grifon asbr02
TTL: 120
VLAN: 1, pvid: yes
Unknown TLVs:
TLV: OUI: 00,80,C2, SubType: 11, Len: 2 02,00
TLV: OUI: 00,80,C2, SubType: 9, Len: 21 03,00,00,00,00,64,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00
TLV: OUI: 00,80,C2, SubType: 10, Len: 21 03,00,00,00,00,64,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00
-------------------------------------------------------------------------------
Interface: enp10s0f4d1, alias: Core: sw04 Gi1/0/27, via: LLDP, RID: 3, Time: 5 days, 19:57:44
Chassis:
ChassisID: mac 00:23:34:02:88:80
SysName: sw04.grif
SysDescr: Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 15.0(2)SE10a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Thu 03-Nov-16 14:17 by prod_rel_team
MgmtIP: 172.17.0.54
Capability: Bridge, on
Capability: Router, off
Port:
PortID: ifname Gi1/0/27
PortDescr: GigabitEthernet1/0/27
TTL: 120
PMD autoneg: supported: no, enabled: no
MAU oper type: 1000BaseLXFD - Fiber over long-wavelength laser, full duplex mode
VLAN: 1, pvid: yes
-------------------------------------------------------------------------------
Suppression des subif IX
alarig@asbr02 ~ $ ip -o l sh | grep -i enp10s0f4 6: enp10s0f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c0 brd ff:ff:ff:ff:ff:ff\ alias Core: asterix Te1/0/16\ altname enx0007434013c0 7: enp10s0f4d1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c8 brd ff:ff:ff:ff:ff:ff\ alias Core: sw04 Gi1/0/27\ altname enx0007434013c8 27: enp10s0f4.10@enp10s0f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c0 brd ff:ff:ff:ff:ff:ff\ alias Peering: breizhix 28: enp10s0f4.51@enp10s0f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c0 brd ff:ff:ff:ff:ff:ff\ alias Cust: OOB Izzycom 29: enp10s0f4.54@enp10s0f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c0 brd ff:ff:ff:ff:ff:ff\ alias Transit: jaguar 30: enp10s0f4.62@enp10s0f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c0 brd ff:ff:ff:ff:ff:ff\ alias Transit: alkante 31: enp10s0f4.63@enp10s0f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c0 brd ff:ff:ff:ff:ff:ff\ alias Core: TH2LF Hivane via FreePro 32: enp10s0f4.209@enp10s0f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue master br209 state UP mode DEFAULT group default qlen 1000\ link/ether 00:07:43:40:13:c0 brd ff:ff:ff:ff:ff:ff\ alias livraison l2 hivane th2
⚠️ enp10s0f4.209 master br209
ip link del enp10s0f4.10 ip link del enp10s0f4.51 ip link del enp10s0f4.54 ip link del enp10s0f4.62 ip link del enp10s0f4.63 ip link del enp10s0f4.209
Suppression des subif grifon
alarig@asbr02 ~ $ ip -o l sh | grep -i enp8s0f0 4: enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Core: sw05 Ethernet1/1/1\ altname enx78e3b5f4ed28 8: enp8s0f0.30@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Core: hosting 9: enp8s0f0.33@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Core: backbone 10: enp8s0f0.36@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Core: vrf_collectes 11: enp8s0f0.58@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Cust: dam64 12: enp8s0f0.100@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Cust: petrus 13: enp8s0f0.103@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Cust: OOB Netensia 14: enp8s0f0.104@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue master br104 state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias alarig paris l2 freepro 15: enp8s0f0.105@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue master br105 state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias dam64 paris l2 freepro 16: enp8s0f0.108@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue master br108 state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias evann paris l2 freepro 17: enp8s0f0.215@enp8s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 4348 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 78:e3:b5:f4:ed:28 brd ff:ff:ff:ff:ff:ff\ alias Core: asbr-th2 via Hivane 43: vrrp.1@enp8s0f0.30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:00:5e:00:01:01 brd ff:ff:ff:ff:ff:ff 44: vrrp6.1@enp8s0f0.30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:00:5e:00:02:01 brd ff:ff:ff:ff:ff:ff 45: vrrp.2@enp8s0f0.30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 00:00:5e:00:02:02 brd ff:ff:ff:ff:ff:ff
⚠️ enp8s0f0.104 master br104 ⚠️ enp8s0f0.105 master br105 ⚠️ enp8s0f0.108 master br108
ip link del enp8s0f0.30 ip link del enp8s0f0.33 ip link del enp8s0f0.36 ip link del enp8s0f0.58 ip link del enp8s0f0.100 ip link del enp8s0f0.103 ip link del enp8s0f0.104 ip link del enp8s0f0.105 ip link del enp8s0f0.108 ip link del enp8s0f0.215
Default statique vers access02
ip route replace default via 172.17.0.2
Down des interfaces du LAG
ip link set enp10s0f4 down ip link set enp8s0f0 down
Conf du LAG
/etc/conf.d/net.bond0:
slaves_bond0="enp8s0f0 enp10s0f4"
config_bond0="null"
mode_bond0="802.3ad"
xmit_hash_policy_bond0="layer3+4"
miimon_bond0="100"
mtu_bond0="9000"
alias_bond0="Core: sw05/sw06 Po1"
vlans_bond0="10 30 33 36 51 54 62 63 64 100 103 104 105 108 209 215"
config_bond0_10="185.1.89.13/24 2001:7f8:b1::d/64"
mtu_bond0_10="1500"
dad_timeout_bond0_10="0"
alias_bond0_10="Peering: breizhix"
config_bond0_30="89.234.186.6/27 2a00:5884::6/64"
dad_timeout_bond0_30="0"
alias_bond0_30="Core: hosting"
config_bond0_33="89.234.186.34/27 2a00:5884:0:6::2/64"
dad_timeout_bond0_33="0"
alias_bond0_33="Core: backbone"
config_bond0_36="172.16.7.34/27"
dad_timeout_bond0_36="0"
alias_bond0_36="Core: vrf_collectes"
config_bond0_51="89.234.186.140/31 2a00:5884:0:100::2:0/127"
dad_timeout_bond0_51="0"
alias_bond0_51="Cust: OOB Izzycom"
config_bond0_54="31.172.233.209/31 2a01:240:aa00::25e/126"
mtu_bond0_54="1500"
dad_timeout_bond0_54="0"
alias_bond0_54="Transit: jaguar"
config_bond0_62="100.64.2.14/28 2a00:5881:9000:ff01::14/64"
mtu_bond0_62="1500"
dad_timeout_bond0_62="0"
alias_bond0_62="Transit: alkante"
config_bond0_63="89.234.186.142/31 2a00:5884:0:2::4/127"
dad_timeout_bond0_63="0"
alias_bond0_63="Core: TH2LF Hivane via FreePro"
config_bond0_64="45.67.83.234/31 2001:678:984:b00b::234/127"
dad_timeout_bond0_64="0"
alias_bond0_64="Cust: dam64"
config_bond0_100="89.234.186.154/29 2a00:5884:0:100::2/112"
dad_timeout_bond0_100="0"
alias_bond0_100="Cust: petrus"
config_bond0_103="89.234.186.161/30 2a00:5884:0:100::2:2/127"
dad_timeout_bond0_103="0"
alias_bond0_103="Cust: OOB Netensia"
config_bond0_104="null"
alias_bond0_104="alarig paris l2 freepro"
config_bond0_105="null"
alias_bond0_105="dam64 paris l2 freepro"
config_bond0_108="null"
alias_bond0_108="evann paris l2 freepro"
config_bond0_209="null"
dad_timeout_bond0_209="0"
alias_bond0_209="livraison l2 hivane th2"
config_bond0_215="89.234.186.198/31 2a00:5884:0:2::10/127"
mtu_bond0_215="4348"
dad_timeout_bond0_215="0"
alias_bond0_215="Core: asbr-th2 via Hivane"
postup() {
sysctl net.mpls.conf.bond0/33.input=1
sysctl net.mpls.conf.bond0/36.input=1
ip link set dev bond0.36 vrf vrf_collectes
sysctl net.mpls.conf.bond0/63.input=1
}
/etc/conf.d/net.enp8s0f0:
config_enp8s0f0="null" mtu_enp8s0f0="9000" dad_timeout_enp8s0f0="0" alias_enp8s0f0="Core: sw05 Et1"
/etc/conf.d/net.enp10s0f4:
config_enp10s0f4="null" mtu_enp10s0f4="9000" alias_enp10s0f4="Core: sw06 Et1"
ln -s /etc/init.d/net.lo /etc/init.d/net.bond0 rc-update add net.bond0 default rc-service net.bond0 start ip link set bond0.209 master br209 ip link set bond0.104 master br104 ip link set bond0.105 master br105 ip link set bond0.108 master br108 for i in $(grep -rl enp10s0f4 /etc/conf.d/net* /etc/bird.conf.d/); do sed -i 's/enp10s0f4/bond0/g'; done for i in $(grep -rl enp8s0f0 /etc/conf.d/net* /etc/bird.conf.d/); do sed -i 's/enp8s0f0/bond0/g'; done
Default unreach
ip route delete default
Conf bird en prod
vim /etc/bird.conf.d/protocol_ospf/ospf_ipv4.conf -> décommenter les costs de prod -> commenter les costs d’offload birdc configure
LAG alarig (port Et3)
alarig@x280 ~ % host regis.grif grif has DNAME record adm.grifon.fr. regis.grif is an alias for regis.adm.grifon.fr. regis.adm.grifon.fr has address 172.17.0.37
regis ~ # lldpctl
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eno1, alias: Core: Grifon, via: LLDP, RID: 3, Time: 0 day, 00:00:17
Chassis:
ChassisID: mac 00:23:34:02:88:80
SysName: sw04.grif
SysDescr: Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 15.0(2)SE10a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Thu 03-Nov-16 14:17 by prod_rel_team
MgmtIP: 172.17.0.54
Capability: Bridge, on
Capability: Router, off
Port:
PortID: ifname Gi1/0/8
PortDescr: GigabitEthernet1/0/8
TTL: 120
PMD autoneg: supported: yes, enabled: yes
Adv: 10Base-T, HD: yes, FD: yes
Adv: 100Base-TX, HD: yes, FD: yes
Adv: 1000Base-T, HD: no, FD: yes
MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode
VLAN: 1, pvid: yes
-------------------------------------------------------------------------------
Interface: enp1s0f0, alias: Core: Breizh-IX, via: LLDP, RID: 2, Time: 0 day, 00:00:29
Chassis:
ChassisID: mac f4:8e:38:42:28:52
SysName: asterix
Port:
PortID: ifname Te1/0/22
PortDescr: Cust: alarig
TTL: 120
VLAN: 1, pvid: yes
Unknown TLVs:
TLV: OUI: 00,80,C2, SubType: 11, Len: 2 02,00
TLV: OUI: 00,80,C2, SubType: 9, Len: 21 03,00,00,00,00,64,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00
TLV: OUI: 00,80,C2, SubType: 10, Len: 21 03,00,00,00,00,64,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00
-------------------------------------------------------------------------------
Interface: enp1s0f1, alias: Core: sw05.grif e16, via: LLDP, RID: 1, Time: 0 day, 00:00:41
Chassis:
ChassisID: mac cc:4e:24:85:9b:ce
SysName: sw05.grif
MgmtIP: 172.17.0.55
MgmtIface: 2049
Capability: Bridge, on
Port:
PortID: mac cc:4e:24:85:9b:dd
PortDescr: 10GigabitEthernet1/1/16
TTL: 120
MFS: 10200
PMD autoneg: supported: yes, enabled: no
MAU oper type: 1000BaseSXFD - Fiber over short-wavelength laser, full duplex mode
VLAN: 1, pvid: yes
-------------------------------------------------------------------------------
regis ~ # ip -4 -br a sh
lo UNKNOWN 127.0.0.1/8 10.0.3.0/32 45.91.126.255/32
br0 UP 89.234.186.209/28
enp1s0f0.10@enp1s0f0 UP 185.1.89.23/24
enp1s0f0.55@enp1s0f0 UP 45.91.126.98/31
enp1s0f0.57@enp1s0f0 UP 10.0.4.28/31
enp1s0f0.59@enp1s0f0 UP 45.91.126.106/31
enp1s0f0.60@enp1s0f0 UP 45.91.126.108/31
bradm UP 172.16.1.8/24
eno1.40@eno1 UP 172.17.0.37/24
eno1.101@eno1 UP 45.91.126.113/28
eno1.104@eno1 UP 10.0.4.24/31
enp1s0f1.30@enp1s0f1 UP 89.234.186.27/27
enp1s0f1.202@enp1s0f1 UP 45.91.126.105/31
gre1@NONE UNKNOWN 10.0.4.15/31
gre10@NONE UNKNOWN 10.0.4.37/31
gre11@NONE UNKNOWN 10.0.4.23/31
gre2@NONE UNKNOWN 10.0.4.58/31
gre4@NONE UNKNOWN 10.0.4.8/31
gre8@NONE UNKNOWN 10.0.4.33/31
gre9@NONE UNKNOWN 10.0.4.53/31
Default statique vers access02
ip route replace default via 172.17.0.2
Suppression des subif IX
regis ~ # ip -o l sh | grep enp1s0f0 4: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:84 brd ff:ff:ff:ff:ff:ff\ alias Core: Breizh-IX\ altname enx6805ca110584 8: enp1s0f0.10@enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:84 brd ff:ff:ff:ff:ff:ff\ alias Peering: Breizh-IX 9: enp1s0f0.42@enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master bradm state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:84 brd ff:ff:ff:ff:ff:ff\ alias Core: Admin Breizh-IX IB 10: enp1s0f0.55@enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:84 brd ff:ff:ff:ff:ff:ff\ alias Cust: Boris 11: enp1s0f0.57@enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:84 brd ff:ff:ff:ff:ff:ff\ alias Core: dam64 prive 12: enp1s0f0.59@enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:84 brd ff:ff:ff:ff:ff:ff\ alias Cust: gmazoyer 13: enp1s0f0.60@enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:84 brd ff:ff:ff:ff:ff:ff\ alias Cust: bcollet
⚠️ enp1s0f0.42 master bradm
ip link del enp1s0f0.10 ip link del enp1s0f0.42 ip link del enp1s0f0.55 ip link del enp1s0f0.57 ip link del enp1s0f0.59 ip link del enp1s0f0.60
Suppression des subif grifon
regis ~ # ip -o l sh | grep enp1s0f1 5: enp1s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:85 brd ff:ff:ff:ff:ff:ff\ alias Core: sw05.grif e16\ altname enx6805ca110585 18: enp1s0f1.30@enp1s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:85 brd ff:ff:ff:ff:ff:ff\ alias Transit: grifon 19: enp1s0f1.202@enp1s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 68:05:ca:11:05:85 brd ff:ff:ff:ff:ff:ff\ alias Core: edge01 via L2 hivane
ip link del enp1s0f1.30 # attention à se connecter par l’ip d’admin ip link del enp1s0f1.202
Down des interfaces du LAG
ip link set enp1s0f0 down ip link set enp1s0f1 down
Conf du LAG
/etc/conf.d/net.bond0:
slaves_bond0="enp1s0f0 enp1s0f1" config_bond0="null" mode_bond0="802.3ad" xmit_hash_policy_bond0="layer3+4" miimon_bond0="100" mtu_bond0="9000" alias_bond0="Core: sw05/sw06 Po3" vlans_bond0="10 30 42 55 57 59 60 202" mtu_bond0_30="1500" alias_bond0_30="Transit: grifon" config_bond0_30="89.234.186.27/27 2a00:5884::1f/64" routes_bond0_30="default via 89.234.186.1 default via fe80::204:92:100:1 dev bond0.30" rules_bond0=" from 89.234.186.0/27 table 204092 from all iif lo sport 56580 lookup 204092 " rules6_bond0="from 2a00:5884::/64 table 204092" brctl_br0="setfd 0 sethello 30 stp off" config_br0="89.234.186.209/28 2a00:5884:102:1::1/64" rules_br0="from 89.234.186.208/28 table 204092" rules6_br0="from 2a00:5884:102::/48 table 204092" mtu_bond0_202="1500" alias_bond0_202="Core: edge01 via L2 hivane" config_bond0_202="45.91.126.105/31 2a0e:f42:fffd::b/127" # BreizhIX # VLANs breizh-ix mtu_bond0_10="1500" alias_bond0_10="Peering: Breizh-IX" config_bond0_10="185.1.89.23/24 2001:7f8:b1::19/64" mtu_bond0_42="1500" alias_bond0_42="Core: Admin Breizh-IX IB" config_bond0_42="172.16.1.8/24" mtu_bond0_55="1500" alias_bond0_55="Cust: Boris" config_bond0_55="45.91.126.98/31 2a0e:f42:fffd::2/127" #config_bond0_56="185.96.184.91/31 2a02:2178:3:6e::2/126" mtu_bond0_57="1500" alias_bond0_57="Core: dam64 prive" config_bond0_57="10.0.4.28/31 2a0e:f42:fffe:1::28/127" mtu_bond0_59="1500" alias_bond0_59="Cust: gmazoyer" config_bond0_59="45.91.126.106/31 2a0e:f42:fffd::c/127" mtu_bond0_60="1500" alias_bond0_60="Cust: bcollet" config_bond0_60="45.91.126.108/31 2a0e:f42:fffd::e/127"
/etc/conf.d/net:
rules_br0="from 89.234.186.208/28 table 204092"
rules6_br0="from 2a00:5884:102::/48 table 204092"
# Admin grifon (VLAN 40)
config_eno1="null"
vlans_eno1="40 101 104"
config_eno1_40="172.17.0.37/24"
config_eno1_101="45.91.126.113/28 2a0e:f42:a:2::1/64"
config_eno1_104="10.0.4.24/31 2a0e:f42:fffd::6/127"
# Tunnels
iptunnel_gre1="mode ip6gre remote 2a0e:f41:0:1::e local 2a00:5884::1f ttl 255"
config_gre1="10.0.4.15/31 2a0e:f42:fffe:1::1/127"
iptunnel_gre2="mode gre remote 193.106.119.161 local 89.234.186.27 ttl 255"
config_gre2="10.0.4.58/31 2a0e:f42:fffe:1::2c/127"
iptunnel_gre3="mode gre remote 193.106.119.47 local 89.234.186.27 ttl 255"
config_gre3="10.0.4.11/31 2a0e:f42:fffe:1::11/127"
iptunnel_gre4="mode ip6gre remote 2001:ba8:1f1:f0af::2 local 2a00:5884::1f ttl
255"
config_gre4="10.0.4.8/31 2a0e:f42:fffe:1::e/127"
iptunnel_gre8="mode gre remote 46.226.106.125 local 89.234.186.27 ttl 225"
config_gre8="10.0.4.33/31 2a0e:f42:fffe:1::27/127"
iptunnel_gre9="mode gre remote 89.234.147.3 local 89.234.186.27 ttl 225"
config_gre9="10.0.4.53/31 2a0e:f42:fffe:1::45/127"
iptunnel_gre10="mode gre remote 85.14.132.186 local 89.234.186.27 ttl 255"
config_gre10="10.0.4.37/31 2a0e:f42:fffe:1::b/127"
iptunnel_gre11="mode gre remote 193.200.43.87 local 89.234.186.27 ttl 255"
config_gre11="10.0.4.23/31 2a0e:f42:fffe:1::15/127"
wireguard_wg0="/etc/wireguard/wg0.conf"
config_wg0="10.0.4.29/31 2a0e:f42:fffe:1::37/127 fe80::37/127"
postup() {
ip link set eno1 alias "Core: Grifon"
ip link set eno1.30 alias "Transit: grifon"
ip link set eno1.40 alias "Core: Grifon admin"
ip link set eno1.101 alias "Core: HVs grifon"
ip link set eno1.104 alias "Core: edge01 via L2 freepro"
ip link set eno2 alias "Core: Admin Breizh-IX OOB"
ip link set gre1 alias "Core: metro"
ip link set gre2 alias "Core: hostux-pub"
ip link set gre3 alias "Core: edge02"
ip link set gre4 alias "Core: rr2"
ip link set gre8 alias "Core: librenms"
ip link set gre9 alias "Core: core02"
ip link set gre9 mtu 1468
ip link set gre10 alias "Core: edge03"
ip link set gre11 alias "Core: edge01"
ip link set wg0 alias "Core: roucool"
ip addr add 10.0.3.0/32 dev lo
ip addr add 45.91.126.255/32 dev lo
ip addr add 2a0e:f42:ffff::1/128 dev lo
ip addr add fe80::1 dev lo
ip address add 2a0e:f42:ffff::8/128 dev lo
}
ln -s /etc/init.d/net.lo /etc/init.d/net.bond0 rc-update add net.bond0 default rc-service net.bond0 start for i in $(grep -rl enp1s0f0 /etc/conf.d/net* /etc/bird.conf); do sed -i 's/enp1s0f0/bond0/g'; done for i in $(grep -rl enp1s0f1 /etc/conf.d/net* /etc/bird.conf); do sed -i 's/enp1s0f1/bond0/g'; done birdc configure
LAG `rtr-xco` (port Et30)
alarig@x280 ~ % host rtr-xco.adm.breizh-ix.net rtr-xco.adm.breizh-ix.net has address 172.16.1.12
configure set chassis aggregated-devices ethernet device-count 1 delete interfaces ge-0/0/6 set interfaces ge-0/0/6 ether-options 802.3ad ae0 set interfaces ge-0/0/6 description "Core: sw06 Et30" delete interfaces ge-0/0/7 set interfaces ge-0/0/7 ether-options 802.3ad ae0 set interfaces ge-0/0/7 description "Core: sw05 Et30" set interfaces ae0 unit 10 description "Core: public peering" set interfaces ae0 unit 10 vlan-id 10 set interfaces ae0 unit 10 family inet address 185.1.89.3/24 set interfaces ae0 unit 10 family inet6 address 2001:7f8:b1::3/64 set interfaces ae0 unit 42 description "Core: admin" set interfaces ae0 unit 42 vlan-id 42 set interfaces ae0 unit 42 family inet address 172.16.1.12/24 set interfaces ae0 unit 52 description "Core: OuestIX via Jaguar" set interfaces ae0 unit 52 vlan-id 52 set interfaces ae0 unit 52 family inet address 198.51.100.2/31 set interfaces ae0 unit 52 family inet6 address 2001:7f8:b1:1::5/126 set interfaces ae0 unit 53 description "Core: BrestIX via Netensia" set interfaces ae0 unit 53 vlan-id 53 set interfaces ae0 unit 53 family inet address 198.51.100.4/31 set interfaces ae0 unit 53 family inet6 address 2001:7f8:b1:1::8/127 set interfaces ae0 unit 58 description "Core: OuestIX via Lugos" set interfaces ae0 unit 58 vlan-id 58 set interfaces ae0 unit 58 family inet address 198.51.100.0/31 set interfaces ae0 unit 58 family inet6 address 2001:7f8:b1:1::1/126
LAG `sw04` (port Et23)
alarig@x280 ~ % host sw04.grif grif has DNAME record adm.grifon.fr. sw04.grif is an alias for sw04.adm.grifon.fr. sw04.adm.grifon.fr has address 172.17.0.54
conf t no spanning-tree vlan 1-4094 interface GigabitEthernet1/0/26 description Core: sw06 Et23 switchport trunk encapsulation dot1q channel-group 1 mode active ! interface GigabitEthernet1/0/28 description Core: sw05 Et23 no channel-group 1 mode active no channel-protocol lacp switchport trunk encapsulation dot1q channel-group 1 mode active ! interface Port-channel1 switchport trunk encapsulation dot1q switchport mode trunk ! end show etherchannel summary show lacp neighbor
procedures/upgrade_vxlan.1796080430.txt.gz · Dernière modification : de alarig
