Skip to content

Commit c011021

Browse files
authored
Update Switchport Mode and VLAN CLI Enhancement.md
1 parent 854f2c0 commit c011021

File tree

1 file changed

+18
-35
lines changed

1 file changed

+18
-35
lines changed

doc/vlan/switchport-mode-support/Switchport Mode and VLAN CLI Enhancement.md

+18-35
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ __*NOTE: This works same for Delete Multiple VLANs members from a PortChannel*__
258258
**3.** show interfaces switchport status
259259

260260

261-
262261
## YANG Model Configuration
263262

264263
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
374373
}
375374

376375

377-
378376
## Examples/Usage of Commands
379377

380378
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
487485

488486
#### Configuring Port & PortChannel from Routed to Access
489487

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.
491489

492490
By default, all ports have IP assigned. For Switchport configuration we have to remove IP assignment otherwise CLI will show following Error:
493491

@@ -498,7 +496,7 @@ By default, all ports have IP assigned. For Switchport configuration we have to
498496

499497
Following Steps will be taken to configure “Access” mode on Ethernet0 from “Routed”.
500498

501-
**1.** Remove IP address on Ethernet0
499+
**1.** Remove IP assigned on Ethernet0
502500

503501
```
504502
admin@sonic:~$ sudo config interface ip remove Ethernet0 10.0.0.0/31
@@ -517,7 +515,6 @@ admin@sonic:~$ show int switchport status
517515
<img src="https://user-images.githubusercontent.com/61490193/236170364-27cc8f1e-a6f3-401a-90e5-8ed035b0e65e.png" width="65%" height="30%">
518516

519517

520-
521518
**4.** Untagged Vlan Member Assignment on Access Port
522519

523520
```
@@ -532,8 +529,6 @@ Ethernet0 is in Access mode, it can have only 1 untagged member. Configuring Mor
532529

533530
<img src="https://user-images.githubusercontent.com/61490193/236170322-030f56ac-b829-4273-95c1-193ddd33807a.png" width="65%" height="30%">
534531

535-
536-
537532
**6.** Tagged Vlan Member Assignment on Access Port
538533

539534
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
548543

549544
**8.** Change Mode from Access to Routed
550545

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:
552547

553548
<img src="https://user-images.githubusercontent.com/61490193/236168568-40e2c53b-d674-49b5-8885-faefac2283e5.png" width="65%" height="30%">
554549

555550

556551
**9.** Change Mode from Access to Trunk
557552

558-
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
559554

560555
<img src="https://user-images.githubusercontent.com/61490193/236169645-6911ab37-8384-4c4e-b9d1-5e6af634497d.png" width="65%" height="30%">
561556

562-
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.
563558

564559
#### Configuring Port & PortChannel from Routed to Trunk
565560

566561
* Physical Port Configuration
567562

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.
569564

570565
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:
571566

@@ -574,7 +569,7 @@ By default, all ports are in routed mode and have IP assigned. For Switchport co
574569
<img src="https://user-images.githubusercontent.com/61490193/236170350-be5d23a1-ba77-4a1e-8cfb-5b9b795c48a9.png" width="65%" height="30%">
575570

576571

577-
Following Steps will be taken to configure “Trunk” from “Routed” for Port and PortChannel respectively.
572+
Following Steps will be taken to configure “Trunk” from “Routed” on a Port
578573

579574
**1.** IP Removal on Ethernet4
580575

@@ -624,7 +619,6 @@ Ethernet4 is in Trunk mode, Changing Trunk port to routed is not possible until
624619

625620
<img src="https://user-images.githubusercontent.com/61490193/236533178-bba78b3f-f429-4042-8de9-0decbe938f36.png" width="65%" height="40%">
626621

627-
628622
**8.** Change Mode from Trunk to Access
629623

630624
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
634628

635629
* PortChannel Configurations
636630

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.
638632

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
640634

641635
**1.** PortChannel Creation
642636

@@ -646,69 +640,58 @@ To configure a PortChannel as Trunk, we first need to create a new PortChannel "
646640
admin@sonic:~$ sudo config portchannel add PortChannel1010
647641
```
648642

649-
**1.** PortChannel Member Addition
643+
**2.** PortChannel Member Addition and PortChannel Trunk Configuration
650644

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
660646

661647
<img src="https://user-images.githubusercontent.com/61490193/236294465-ec73c97c-8531-4a59-943c-8aed4e773d45.png" width="65%" height="30%">
662648

663649

664650
**3.** Untagged Vlan Member Assignment on Trunk PortChannel
665651

666-
667652
```
668653
admin@sonic:~$ sudo config vlan member add 3 -u PortChannel1010
669654
670655
Ethernet8 & Ethernet12 has be configured as Portchannel1010 member, they are excluded from interface list.
671656
672-
Those Interfaces which are members of PortChannel will be reomved from interface list
657+
Those Interfaces which are members of PortChannel will be reomved from interface list in show interfaces switchport
673658
```
674659

675660
<img src="https://user-images.githubusercontent.com/61490193/236294399-38b70aa3-b90d-4e57-8d13-0860375e738b.png" width="65%" height="20%">
676661

677-
**5.** Multiple Untagged Member Assignment on Trunk PortChannel
662+
**4.** Multiple Untagged Member Assignment on Trunk PortChannel
678663

679664
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:
680665

681666
<img src="https://user-images.githubusercontent.com/61490193/236238520-6fb49e9b-9607-4e5e-b3a2-09b762580e7d.png" width="65%" height="20%">
682667

683-
**6.** Tagged Vlan Member Assignment on Trunk PortChannel
668+
**5.** Tagged Vlan Member Assignment on Trunk PortChannel
684669

685670
PortChannel1010 is in Trunk mode, it can have tagged members. Configuring tagged member on Trunk Port will show following:
686671

687672
```
688673
admin@sonic:~$ sudo config vlan member add -m 4,5,6 PortChannel1010
689674
```
690675

691-
692676
<img src="https://user-images.githubusercontent.com/61490193/236294479-887748f2-7772-403a-b241-375c767fb172.png" width="65%" height="20%">
693677

694-
**7.** IP Assignment on Trunk PortChannel
678+
**6.** IP Assignment on Trunk PortChannel
695679

696680
PortChannel1010 is in Trunk mode, IP assignment on the trunk portchannel is not allowed. Configuring IP Assignment on Trunk PortChannel will show following error:
697681

698682
<img src="https://user-images.githubusercontent.com/61490193/236238492-f5cf68a4-78e9-4981-8377-c825dc49f3b1.png" width="65%" height="20%">
699683

700684

701-
**8.** Change Trunk PortChannel to Routed
685+
**7.** Change Trunk PortChannel to Routed
702686

703687
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:
704688

705689
```
706-
admin@sonic:~$ sudo config switchport mode routed PortChannel1010
707-
690+
admin@sonic:~$ sudo config switchport mode routed PortChannel1010
708691
```
709692
<img src="https://user-images.githubusercontent.com/61490193/236238571-ec324daf-53bb-4b6f-9a9e-ea17595d81e6.png" width="65%" height="20%">
710693

711-
**9.** Change Trunk PortChannel to Access
694+
**8.** Change Trunk PortChannel to Access
712695
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:
713696

714697
<img src="https://user-images.githubusercontent.com/61490193/236238520-6fb49e9b-9607-4e5e-b3a2-09b762580e7d.png" width="65%" height="40%">

0 commit comments

Comments
 (0)