Ethernet is a router interface - cannot Native VLAN nor Tag Traffic on Ports

1,879 views
Skip to first unread message

Matt Mabis

unread,
Oct 29, 2021, 12:18:04 AM10/29/21
to sonicproject
Hello,

New to Sonic however i cannot seem to figure out why this exists, im using a Mellanox SN2700 with Sonic.Latest and i have created a VLAN but when i try to add members to it i get the following

admin@sonic:~$ sudo config vlan member add 1024 Ethernet32
Usage: config vlan member add [OPTIONS] <vid> port
Try "config vlan member add -h" for help.

Error: Ethernet32 is a router interface!
admin@sonic:~$

I can see that my interfaces on VLAN are marked as Routed, however i cannot seem to get them to migrate from routed status to Tagged or Untagged (Native VLAN) states... how does one do this, theres no documentation that refers to the error im getting and how to pull interfaces out of being a router interface

admin@sonic:~$ show interfaces status
  Interface            Lanes    Speed    MTU    FEC    Alias    Vlan    Oper    Admin            Type    Asym PFC
-----------  ---------------  -------  -----  -----  -------  ------  ------  -------  --------------  ----------
  Ethernet0          0,1,2,3      10G   9100    N/A     etp1  routed      up       up  SFP/SFP+/SFP28         N/A
  Ethernet4          4,5,6,7     100G   9100    N/A     etp2  routed    down       up             N/A         N/A
  Ethernet8        8,9,10,11     100G   9100    N/A     etp3  routed    down       up             N/A         N/A
 Ethernet12      12,13,14,15     100G   9100    N/A     etp4  routed    down       up             N/A         N/A
 Ethernet16      16,17,18,19     100G   9100    N/A     etp5  routed    down       up             N/A         N/A
 Ethernet20      20,21,22,23     100G   9100    N/A     etp6  routed    down       up             N/A         N/A
 Ethernet24      24,25,26,27     100G   9100    N/A     etp7  routed    down       up             N/A         N/A
 Ethernet28      28,29,30,31     100G   9100    N/A     etp8  routed    down       up             N/A         N/A
 Ethernet32      32,33,34,35      40G   9100    N/A     etp9  routed      up       up  QSFP+ or later         N/A
 Ethernet36      36,37,38,39     100G   9100    N/A    etp10  routed    down       up             N/A         N/A
 Ethernet40      40,41,42,43      40G   9100    N/A    etp11  routed      up       up  QSFP+ or later         N/A
 Ethernet44      44,45,46,47     100G   9100    N/A    etp12  routed    down       up             N/A         N/A
 Ethernet48      48,49,50,51     100G   9100    N/A    etp13  routed    down       up             N/A         N/A
 Ethernet52      52,53,54,55     100G   9100    N/A    etp14  routed    down       up             N/A         N/A
 Ethernet56      56,57,58,59     100G   9100    N/A    etp15  routed    down       up             N/A         N/A
 Ethernet60      60,61,62,63     100G   9100    N/A    etp16  routed    down       up             N/A         N/A
 Ethernet64      64,65,66,67      40G   9100    N/A    etp17  routed      up       up  QSFP+ or later         N/A
 Ethernet68      68,69,70,71     100G   9100    N/A    etp18  routed    down       up             N/A         N/A
 Ethernet72      72,73,74,75      40G   9100    N/A    etp19  routed      up       up  QSFP+ or later         N/A
 Ethernet76      76,77,78,79     100G   9100    N/A    etp20  routed    down       up             N/A         N/A
 Ethernet80      80,81,82,83     100G   9100    N/A    etp21  routed    down       up             N/A         N/A
 Ethernet84      84,85,86,87     100G   9100    N/A    etp22  routed    down       up             N/A         N/A
 Ethernet88      88,89,90,91     100G   9100    N/A    etp23  routed    down       up             N/A         N/A
 Ethernet92      92,93,94,95     100G   9100    N/A    etp24  routed    down       up             N/A         N/A
 Ethernet96      96,97,98,99     100G   9100    N/A    etp25  routed    down       up             N/A         N/A
Ethernet100  100,101,102,103     100G   9100    N/A    etp26  routed    down       up             N/A         N/A
Ethernet104  104,105,106,107     100G   9100    N/A    etp27  routed    down       up             N/A         N/A
Ethernet108  108,109,110,111     100G   9100    N/A    etp28  routed    down       up             N/A         N/A
Ethernet112  112,113,114,115     100G   9100    N/A    etp29  routed    down       up             N/A         N/A
Ethernet116  116,117,118,119     100G   9100    N/A    etp30  routed    down       up             N/A         N/A
Ethernet120  120,121,122,123     100G   9100    N/A    etp31  routed    down       up             N/A         N/A
Ethernet124  124,125,126,127     100G   9100    N/A    etp32  routed    down       up             N/A         N/A


Jin zhang

unread,
Oct 29, 2021, 1:07:27 AM10/29/21
to Matt Mabis, sonicproject
Before adding VLAN member, try remove IP address first:

sudo config interface ip remove Ethernet32 <ip_address>

BR,
--Jin

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/c79582e5-4aaa-4ca0-8207-c598493dcbc0n%40googlegroups.com.

Matt Mabis

unread,
Oct 29, 2021, 3:02:10 AM10/29/21
to sonicproject
Hello Jin,

Thanks for your help!!!

Interesting, is this common with a fresh installation of the OS for IP addresses to be there or could it have been a previous config stored somewhere where the data was at?  (These were Switches off ebay)

admin@sonic:~$ show ip interfaces
Interface    Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
-----------  --------  -------------------  ------------  --------------  -------------
Ethernet0              10.0.0.0/31          up/down       ARISTA01T2      10.0.0.1
Ethernet4              10.0.0.2/31          up/down       ARISTA02T2      10.0.0.3
Ethernet8              10.0.0.4/31          up/down       ARISTA03T2      10.0.0.5
Ethernet12             10.0.0.6/31          up/down       ARISTA04T2      10.0.0.7
Ethernet16             10.0.0.8/31          up/down       ARISTA05T2      10.0.0.9
Ethernet20             10.0.0.10/31         up/down       ARISTA06T2      10.0.0.11
Ethernet24             10.0.0.12/31         up/down       ARISTA07T2      10.0.0.13
Ethernet28             10.0.0.14/31         up/down       ARISTA08T2      10.0.0.15
Ethernet32             10.0.0.16/31         up/down       ARISTA09T2      10.0.0.17
Ethernet36             10.0.0.18/31         up/down       ARISTA10T2      10.0.0.19
Ethernet40             10.0.0.20/31         up/down       ARISTA11T2      10.0.0.21
Ethernet44             10.0.0.22/31         up/down       ARISTA12T2      10.0.0.23
Ethernet48             10.0.0.24/31         up/down       ARISTA13T2      10.0.0.25
Ethernet52             10.0.0.26/31         up/down       ARISTA14T2      10.0.0.27
Ethernet56             10.0.0.28/31         up/down       ARISTA15T2      10.0.0.29
Ethernet60             10.0.0.30/31         up/down       ARISTA16T2      10.0.0.31
Ethernet64             10.0.0.32/31         up/down       ARISTA01T0      10.0.0.33
Ethernet68             10.0.0.34/31         up/down       ARISTA02T0      10.0.0.35
Ethernet72             10.0.0.36/31         up/down       ARISTA03T0      10.0.0.37
Ethernet76             10.0.0.38/31         up/down       ARISTA04T0      10.0.0.39
Ethernet80             10.0.0.40/31         up/down       ARISTA05T0      10.0.0.41
Ethernet84             10.0.0.42/31         up/down       ARISTA06T0      10.0.0.43
Ethernet88             10.0.0.44/31         up/down       ARISTA07T0      10.0.0.45
Ethernet92             10.0.0.46/31         up/down       ARISTA08T0      10.0.0.47
Ethernet96             10.0.0.48/31         up/down       ARISTA09T0      10.0.0.49
Ethernet100            10.0.0.50/31         up/down       ARISTA10T0      10.0.0.51
Ethernet104            10.0.0.52/31         up/down       ARISTA11T0      10.0.0.53
Ethernet108            10.0.0.54/31         up/down       ARISTA12T0      10.0.0.55
Ethernet112            10.0.0.56/31         up/down       ARISTA13T0      10.0.0.57
Ethernet116            10.0.0.58/31         up/down       ARISTA14T0      10.0.0.59
Ethernet120            10.0.0.60/31         up/down       ARISTA15T0      10.0.0.61
Ethernet124            10.0.0.62/31         up/down       ARISTA16T0      10.0.0.63
Loopback0              10.1.0.1/32          up/up         N/A             N/A
Vlan1024               10.20.0.254/16       up/down       N/A             N/A
Vlan1025               10.10.30.254/24      up/down       N/A             N/A
docker0                240.127.1.1/24       up/down       N/A             N/A
eth0                   10.192.1.246/24      up/up         N/A             N/A
lo                     127.0.0.1/16         up/up         N/A             N/A

Once removed i was able to add the VLAN interafaces correctly, 

flyse...@gmail.com

unread,
Nov 2, 2021, 4:48:30 AM11/2/21
to sonicproject
In a fresh installation, the config_db.json is not existed in the system,
SONiC will generate default config using t1 preset, that's why you see many ip address configured on the interface. 

Jimi 

Matt Mabis 在 2021年10月29日 星期五下午3:02:10 [UTC+8] 的信中寫道:

Pablo Thurler

unread,
Nov 2, 2021, 9:24:29 PM11/2/21
to flyse...@gmail.com, sonicproject
hello all, 

How can add to , "show interface status", the interface eth0  ?

When list "show ip interfaces", the system list a one interface eth0 and is a RJ45 management,
but when using "show interface status", the eth0 no have into list.

thanks


Pablo Thurler

zongbin tu

unread,
Jan 7, 2024, 10:03:52 PM1/7/24
to sonicproject
This answer solved my problem
Reply all
Reply to author
Forward
0 new messages