Solved

How can I set the interface to access mode?

  • 17 August 2018
  • 2 replies
  • 555 views

Hi,

Is there anyway to configure the interface to access mode? Here is my configuration,

$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*.intf

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

iface eth1 inet dhcp

auto bridge
iface bridge
bridge-ports glob swp1-54
bridge-vids 10
bridge-vlan-aware yes

auto swp45
iface swp45
link-autoneg on
bridge-access 10


I want to set swp45 to be "access" mode, but seems like it always in "Trunk" mode,
$ net show interface swp45
Name MAC Speed MTU Mode
-- ----- ----------------- ----- ---- --------
UP swp45 e4:f0:04:4f:52:19 1G 1500 Trunk/L2

All VLANs on L2 Port
--------------------
10

Untagged
--------
10

cl-netstat counters
-------------------
RX_OK RX_ERR RX_DRP RX_OVR TX_OK TX_ERR TX_DRP TX_OVR
------ ------ ------ ------ ----- ------ ------ ------
108747 0 1195 0 601 0 0 0

LLDP Details
------------
LocalPort RemotePort(RemoteHost)
--------- ---------------------------
swp45 GigabitEthernet1/35(Switch)


Thanks a lot for your help in the advance!
icon

Best answer by Eric Pulvino 17 August 2018, 16:27

Depending on your version of CL the word "Trunk" right there is a bit misleading. I suggest looking at "bridge vlan show" or "net show bridge vlan" to understand how the port is configured.

That being said, from your output it looks to be an access port. There is one vlan on the port (10) and that vlan is untagged.... which is what an access port is... a trunk with a single vlan as the native vlan.
View original

2 replies

Userlevel 5
Depending on your version of CL the word "Trunk" right there is a bit misleading. I suggest looking at "bridge vlan show" or "net show bridge vlan" to understand how the port is configured.

That being said, from your output it looks to be an access port. There is one vlan on the port (10) and that vlan is untagged.... which is what an access port is... a trunk with a single vlan as the native vlan.
@Eric Pulvino , I think I have resolved the issue with your help, really appreciate for your help!

Reply