Skip to content

Commit

Permalink
Feat(eos_designs): Add support for l3_port_channel_interfaces for WAN (
Browse files Browse the repository at this point in the history
…aristanetworks#4752)

Co-authored-by: Carl Buchmann <[email protected]>
Co-authored-by: Claus Holbech <[email protected]>
Co-authored-by: Guillaume Mulocher <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
5 people authored Jan 31, 2025
1 parent fc341ac commit cef4fd5
Show file tree
Hide file tree
Showing 53 changed files with 7,973 additions and 249 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- [Internal VLAN Allocation Policy Device Configuration](#internal-vlan-allocation-policy-device-configuration)
- [Interfaces](#interfaces)
- [Ethernet Interfaces](#ethernet-interfaces)
- [Port-Channel Interfaces](#port-channel-interfaces)
- [Loopback Interfaces](#loopback-interfaces)
- [Routing](#routing)
- [Service Routing Protocols Model](#service-routing-protocols-model)
Expand Down Expand Up @@ -235,7 +236,7 @@ dhcp server
| -------------- | --------- | --------- |
| Ethernet5 | True | - |
| Ethernet6 | True | - |
| Ethernet8 | True | - |
| Port-Channel8 | True | - |

## Monitoring

Expand Down Expand Up @@ -306,7 +307,10 @@ vlan internal order ascending range 1006 1199
| Ethernet5 | site1-wan1-Ethernet4 | - | 100.64.10.1/24 | default | - | False | - | - |
| Ethernet6 | site1-wan2-Ethernet4 | - | 100.64.11.1/24 | default | - | False | - | - |
| Ethernet7 | site2-wan2-Ethernet4 | - | 100.64.21.1/24 | default | - | False | - | - |
| Ethernet8 | site3-wan1-Ethernet4 | - | 100.64.30.1/24 | default | - | False | - | - |
| Ethernet8 | - | 8 | *100.64.30.1/24 | **default | **- | *False | **- | **- |
| Ethernet9 | - | 8 | *100.64.30.1/24 | **default | **- | *False | **- | **- |

*Inherited from Port-Channel Interface

#### Ethernet Interfaces Device Configuration

Expand Down Expand Up @@ -345,7 +349,35 @@ interface Ethernet7
ip address 100.64.21.1/24
!
interface Ethernet8
description site3-wan1-Ethernet4
no shutdown
channel-group 8 mode active
!
interface Ethernet9
no shutdown
channel-group 8 mode active
```

### Port-Channel Interfaces

#### Port-Channel Interfaces Summary

##### L2

| Interface | Description | Mode | VLANs | Native VLAN | Trunk Group | LACP Fallback Timeout | LACP Fallback Mode | MLAG ID | EVPN ESI |
| --------- | ----------- | ---- | ----- | ----------- | ------------| --------------------- | ------------------ | ------- | -------- |

##### IPv4

| Interface | Description | MLAG ID | IP Address | VRF | MTU | Shutdown | ACL In | ACL Out |
| --------- | ----------- | ------- | ---------- | --- | --- | -------- | ------ | ------- |
| Port-Channel8 | site3-wan1-Port-Channel4 | - | 100.64.30.1/24 | default | - | False | - | - |

#### Port-Channel Interfaces Device Configuration

```eos
!
interface Port-Channel8
description site3-wan1-Port-Channel4
no shutdown
no switchport
ip address 100.64.30.1/24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- [Interfaces](#interfaces)
- [DPS Interfaces](#dps-interfaces)
- [Ethernet Interfaces](#ethernet-interfaces)
- [Port-Channel Interfaces](#port-channel-interfaces)
- [Loopback Interfaces](#loopback-interfaces)
- [VXLAN Interface](#vxlan-interface)
- [Routing](#routing)
Expand Down Expand Up @@ -287,7 +288,7 @@ daemon TerminAttr

| Tracker Name | Record Export On Inactive Timeout | Record Export On Interval | Number of Exporters | Applied On |
| ------------ | --------------------------------- | ------------------------- | ------------------- | ---------- |
| FLOW-TRACKER | 70000 | 5000 | 1 | Dps1<br>Ethernet1.666<br>Ethernet1.42<br>Ethernet4 |
| FLOW-TRACKER | 70000 | 5000 | 1 | Dps1<br>Ethernet1.666<br>Ethernet1.42<br>Port-Channel4 |

##### Exporters Summary

Expand Down Expand Up @@ -430,7 +431,10 @@ interface Dps1
| --------- | ----------- | ------------- | ---------- | ----| ---- | -------- | ------ | ------- |
| Ethernet1.42 | RED-TEST | - | 10.42.3.1/24 | RED | - | False | - | - |
| Ethernet1.666 | BLUE-TEST | - | 10.66.3.1/24 | BLUE | - | False | - | - |
| Ethernet4 | REGION2-INTERNET-CORP_inet-site3-wan1_inet-cloud_Ethernet8 | - | dhcp | default | - | False | ACL-INTERNET-IN_Ethernet4 | - |
| Ethernet4 | inet-cloud_Ethernet8 | 4 | *dhcp | **default | **- | *False | *ACL-INTERNET-IN_Port-Channel4 | **- |
| Ethernet5 | inet-cloud_Ethernet9 | 4 | *dhcp | **default | **- | *False | *ACL-INTERNET-IN_Port-Channel4 | **- |

*Inherited from Port-Channel Interface

#### Ethernet Interfaces Device Configuration

Expand Down Expand Up @@ -459,13 +463,43 @@ interface Ethernet1.666
ip address 10.66.3.1/24
!
interface Ethernet4
description REGION2-INTERNET-CORP_inet-site3-wan1_inet-cloud_Ethernet8
description inet-cloud_Ethernet8
no shutdown
channel-group 4 mode active
!
interface Ethernet5
description inet-cloud_Ethernet9
no shutdown
channel-group 4 mode active
```

### Port-Channel Interfaces

#### Port-Channel Interfaces Summary

##### L2

| Interface | Description | Mode | VLANs | Native VLAN | Trunk Group | LACP Fallback Timeout | LACP Fallback Mode | MLAG ID | EVPN ESI |
| --------- | ----------- | ---- | ----- | ----------- | ------------| --------------------- | ------------------ | ------- | -------- |

##### IPv4

| Interface | Description | MLAG ID | IP Address | VRF | MTU | Shutdown | ACL In | ACL Out |
| --------- | ----------- | ------- | ---------- | --- | --- | -------- | ------ | ------- |
| Port-Channel4 | REGION2-INTERNET-CORP_inet-site3-wan1_inet-cloud_Port-Channel8 | - | dhcp | default | - | False | ACL-INTERNET-IN_Port-Channel4 | - |

#### Port-Channel Interfaces Device Configuration

```eos
!
interface Port-Channel4
description REGION2-INTERNET-CORP_inet-site3-wan1_inet-cloud_Port-Channel8
no shutdown
no switchport
flow tracker hardware FLOW-TRACKER
ip address dhcp
dhcp client accept default-route
ip access-group ACL-INTERNET-IN_Ethernet4 in
ip access-group ACL-INTERNET-IN_Port-Channel4 in
```

### Loopback Interfaces
Expand Down Expand Up @@ -1011,7 +1045,7 @@ ip extcommunity-list ECL-EVPN-SOO permit soo 192.168.255.11:203

```eos
!
ip access-list ACL-INTERNET-IN_Ethernet4
ip access-list ACL-INTERNET-IN_Port-Channel4
1 remark Not for PRODUCTION: This ACL is built this way because the lab has an out-of-band interface
10 permit udp any host 100.64.30.2 eq isakmp non500-isakmp
30 permit icmp any host 100.64.30.2
Expand Down Expand Up @@ -1168,7 +1202,7 @@ application traffic recognition

| Interface name | Public address | STUN server profile(s) |
| -------------- | -------------- | ---------------------- |
| Ethernet4 | - | INTERNET-pf1-Ethernet2<br>INTERNET-pf2-Ethernet2 |
| Port-Channel4 | - | INTERNET-pf1-Ethernet2<br>INTERNET-pf2-Ethernet2 |

###### Dynamic Peers Settings

Expand Down Expand Up @@ -1206,7 +1240,7 @@ router path-selection
path-group INTERNET id 102
ipsec profile CP-PROFILE
!
local interface Ethernet4
local interface Port-Channel4
stun server-profile INTERNET-pf1-Ethernet2 INTERNET-pf2-Ethernet2
!
peer dynamic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,21 @@ wan_router:
id: 11
mgmt_ip: 192.168.17.20/24
uplink_switches: [site3-leaf1]
l3_interfaces:
- name: Ethernet4
peer_interface: Ethernet8
l3_port_channels:
- name: Port-Channel4
mode: active
member_interfaces:
- name: Ethernet4
peer_interface: Ethernet8
- name: Ethernet5
peer_interface: Ethernet9
peer: inet-cloud
ip_address: dhcp
dhcp_ip: 100.64.30.2
profile: INTERNET-WAN-INTERFACE
dhcp_accept_default_route: true
ipv4_acl_in: ACL-INTERNET-IN
peer_port_channel: Port-Channel8
wan_carrier: REGION2-INTERNET-CORP
wan_circuit_id: inet-site3-wan1
flow_tracking:
enabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ spine:
- name: Ethernet7
description: site2-wan2-Ethernet4
ip_address: 100.64.21.1/24
- name: Ethernet8
description: site3-wan1-Ethernet4
l3_port_channels:
- name: Port-Channel8
mode: active
description: site3-wan1-Port-Channel4
member_interfaces:
- name: Ethernet8
- name: Ethernet9
ip_address: 100.64.30.1/24
structured_config:
dhcp_server_ipv4: true
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cef4fd5

Please sign in to comment.