You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/vlan/switchport-mode-support/Switchport Mode and VLAN CLI Enhancement.md
+18-35
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,6 @@ __*NOTE: This works same for Delete Multiple VLANs members from a PortChannel*__
258
258
**3.** show interfaces switchport status
259
259
260
260
261
-
262
261
## YANG Model Configuration
263
262
264
263
For Mode attribute, a new type is defined in YANG Model for adding support of "mode" in PORT_TABLE & PORTCHANNEL_TABLE.
@@ -374,7 +373,6 @@ If a VLAN is configured in old configurations its mode will be set as “trunk
374
373
}
375
374
376
375
377
-
378
376
## Examples/Usage of Commands
379
377
380
378
This section provides examples/usage of new commands that have been added for switchport modes and VLAN CLI enhancements. These commands work similarly for both Physical Ports and Port Channels.
@@ -487,7 +485,7 @@ Following example shows usage of switchport modes “access” and “trunk” a
487
485
488
486
#### Configuring Port & PortChannel from Routed to Access
489
487
490
-
In these examples, Ethernet0 will be configured as “Access” from “Routed”
488
+
In these examples, Ethernet0 will be configured as “Access” from “Routed”. We will be using some of exisitng Vlans (Vlan2 to Vlan12 created in the above section) for vlan member configuration on Port.
491
489
492
490
By default, all ports have IP assigned. For Switchport configuration we have to remove IP assignment otherwise CLI will show following Error:
493
491
@@ -498,7 +496,7 @@ By default, all ports have IP assigned. For Switchport configuration we have to
498
496
499
497
Following Steps will be taken to configure “Access” mode on Ethernet0 from “Routed”.
500
498
501
-
**1.** Remove IP address on Ethernet0
499
+
**1.** Remove IP assigned on Ethernet0
502
500
503
501
```
504
502
admin@sonic:~$ sudo config interface ip remove Ethernet0 10.0.0.0/31
@@ -517,7 +515,6 @@ admin@sonic:~$ show int switchport status
**6.** Tagged Vlan Member Assignment on Access Port
538
533
539
534
Ethernet0 is in Access mode, it cannot have tagged members. Configuring tagged member on Access Port will show following error:
@@ -548,24 +543,24 @@ Ethernet0 is in Access mode, IP assignment on the access port is not allowed. Co
548
543
549
544
**8.** Change Mode from Access to Routed
550
545
551
-
Ethernet0 is in Access mode, switching an access port to routed is not possible until it has an untagged member. Switching access to routed will show following error:
546
+
Ethernet0 is in Access mode, switching an access port to routed is not possible until it has an untagged member. Changing mode from access to routed will show following error:
Ethernet0 is in Access mode, switching an access to trunk mode is possible and its untagged member will be retained. After Switching from Access to Trunk, all functionalities of a trunk mode will be available.
553
+
Ethernet0 is in Access mode, switching an access to trunk mode is possible and its untagged member will be retained. After changing mode from access to trunk, all functionalities of a trunk mode can be used/configred on Port
We are giving examples for physical ports, these commands work in the same way for PortChannels as they do for physical ports.
557
+
We have given examples/usage for switchport mode configuration from routed to access on physical port. This works in the same way for PortChannels as they do for physical ports.
563
558
564
559
#### Configuring Port & PortChannel from Routed to Trunk
565
560
566
561
* Physical Port Configuration
567
562
568
-
In these examples, Ethernet4 will be configured as “Trunk” from “Routed” for Port.
563
+
In these examples, Ethernet4 will be configured as “Trunk” from “Routed” on Port.
569
564
570
565
By default, all ports are in routed mode and have IP assigned. For Switchport configuration we have to remove IP assignment otherwise CLI will show following Error:
571
566
@@ -574,7 +569,7 @@ By default, all ports are in routed mode and have IP assigned. For Switchport co
Ethernet4 is in Trunk mode, Changing Trunk port to access is possible and its untagged members wll retain. Changing Trunk to access will show following:
@@ -634,9 +628,9 @@ Ethernet4 is in Trunk mode, Changing Trunk port to access is possible and its
634
628
635
629
* PortChannel Configurations
636
630
637
-
In these examples, PortChannel will be configured as “Trunk” from “Routed”.
631
+
In these examples, PortChannel will be configured as “Trunk” from “Routed”. We will be using some of exisitng Vlans (Vlan2 to Vlan12 created in the above section) for vlan member configuration on Portchannel.
638
632
639
-
Following Steps will be taken to configure “Trunk” mode on Ethernet0 from “Routed”.
633
+
Following Steps will be taken to configure “Trunk” from "Routed" on PortChannel
640
634
641
635
**1.** PortChannel Creation
642
636
@@ -646,69 +640,58 @@ To configure a PortChannel as Trunk, we first need to create a new PortChannel "
**2.** PortChannel Member Addition and PortChannel Trunk Configuration
650
644
651
-
We will add Ethernet8 & Ethernet12 as members of PortChannel1010.
652
-
653
-
```
654
-
admin@sonic:~$ sudo config portchannel member add
655
-
```
656
-
657
-
**2.** PortChannel Member IP removal and PortChannel Trunk Configuration
658
-
659
-
Ethernet8, Ethernet12 will be added as Portchannel member but first we have to remove IP assigned to Ethernet8 & Ethernet12. After IP address can be removed , we will add portchannel members Ethernet8 & Ethernet12.
645
+
Ethernet8, Ethernet12 will be added as Portchannel member but first we have to remove IP assigned to Ethernet8 & Ethernet12. After IP address can be removed , we will add Ethernet8 & Ethernet12 as portchannel member on PortChannel1010
**5.** Multiple Untagged Member Assignment on Trunk PortChannel
662
+
**4.** Multiple Untagged Member Assignment on Trunk PortChannel
678
663
679
664
PortChannel1010 is in Trunk mode, it can have only 1 untagged member. Configuring More than 1 untagged member on Trunk Portchannel will show following error:
PortChannel1010 is in Trunk mode, IP assignment on the trunk portchannel is not allowed. Configuring IP Assignment on Trunk PortChannel will show following error:
PortChannel1010 is in Trunk mode, switching an trunk portchannel to routed is not allowed until it has an untagged member. Switching Trunk PortChannel to routed will show following error:
PortChannel1010 is in Trunk mode, switching trunk portchannel to access is not possible and its has tagged members.Switching Trunk PortChannel to access will show following error:
0 commit comments