Configuring vlans on Cisco SG200 series switch with Ubuntu server

Posted by nixnotwin on Server Fault See other posts from Server Fault or by nixnotwin
Published on 2012-06-28T11:23:57Z Indexed on 2012/06/28 15:18 UTC
Read the original article Hit count: 470

Filed under:
|
|
|

I created a vlan on Ubuntu with vconfig tool with 21 as id and eth1 as the host port. I connected eth1 to one of the ports on the swtich (GE23) as all ports trunk by default. In the webgui I created a vlan named test with the id 21 and I made GE2 are port as an access port. In port to vlan mapping I selected vlan 21 and added it port GE2 by selecting untagged option. I have assigned 192.168.1.1/24 as the ip of eth1.21 on Ubuntu. If I connect another cleint pc to GE2 port with a ip of 192.168.1.2/24 I cannot ping the server ip (192.168.1.1/24). Ping from server to client also does not work. I inspected packets that are sent out eth1 on the server and I could see the vlan 21 tag. And I connect the other end of the cable to a different Linux pc and inspected the packets but no vlan tags can be seen. What could be preventing me from getting vlans working?

Edit 1 screenshots:

Interface Settings

Port to vlan mapping

Port to vlan membership

© Server Fault or respective owner

Related posts about networking

Related posts about cisco