Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change PortChannel Creation command #58

Merged
merged 1 commit into from
May 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 12 additions & 30 deletions doc/mgmt/SONiC_OC_Interface_HLD.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,25 +383,25 @@ sonic(conf-if-po4)# no switchport access Vlan
```
#### 3.6.2.1.2 PORTCHANNEL
#### Create a PortChannel
`interface PortChannel <channel-number>`<br>
`interface PortChannel <channel-number> [mode <active | on>] [ min-links <value> ] [fallback] `<br>
- *Supported channel-number range: 0-9999*<br>
- *By default, the admin status is UP and MTU is 9100*
- *Supported Min links range: 1-255*<br>
- Default values:<br>
admin status - UP<br>
MTU - 9100<br>
mode - active<br>
min-links - 0<br>
fallback - disabled<br>
```
sonic(config)# interface PortChannel 1
sonic(config)# interface PortChannel 1 mode active min-links 2 fallback
```
#### Configure min-links
`minimum-links <number>`
<br>
- *As per [teamd](https://www.systutorials.com/docs/linux/man/5-teamd.conf/), supported range: 1-255 & default value:0*
```
sonic(config)# interface PortChannel 1
sonic(conf-if-po1)# minimum-links 1
sonic(config)# interface PortChannel 2 mode active fallback
```
#### Remove min-links
`no minimum-links` --> Reset to default value of 0
```
sonic(conf-if-po1)# no minimum-links
sonic(config)# interface PortChannel 3 mode on min-links 3
```

#### Configure MTU
`mtu <mtu-val>`
```
Expand All @@ -422,17 +422,6 @@ sonic(conf-if-po1)# no shutdown
```
sonic(conf-if-po1)# shutdown
```
#### Enable Fallback
`fallback enable`<br>
- *By default, LACP fallback is disabled*
```
sonic(conf-if-po1)# fallback enable
```
#### Disable Fallback
`no fallback`
```
sonic(conf-if-po1)# no fallback
```
#### Configures an IPv4 address
`ip address <ip-address/mask>`
```
Expand All @@ -459,13 +448,6 @@ sonic(conf-if-po1)# no ipv6 address a::e
sonic(config)# interface Ethernet4
sonic(conf-if-Ethernet4)# channel-group 1
```
#### Configure the port mode for the link in a PortChannel
`channel-group <channel-number> mode [active|on]`
- active — Sets Channeling mode to Active
- on — Sets Channeling mode to static
```
sonic(conf-if-Ethernet4)# channel-group 1 mode active
```
#### Remove a port member
`no channel-group`
```
Expand Down