Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLAN Question

Status
Not open for further replies.

jlynch1

Technical User
Dec 20, 2001
100
IE

I have two subnets within a vlan. e.g. #
The network addresses are 192.168.8.240 and 192.168.8.248
The network mask is 255.255.255.248 (ie 29 bits used for network address)
Both of these networks are tagged with the tag 8 by the switch.

I have a single interface I want to be on both networks. I am using netbsd. Both of these are set up to user the vlan 8 tag.

vlan0 192.168.8.254/29
vlan1 192.168.8.246/29

vlan0 doesnt seem to be able to receive packets. Is it possible to have 2 virtual interfaces using the same tag 8 with 2 different ip addresses ???

vlan1 works fine and can ping the other nodes in the 192.168.8.240 network.
 
Not sure if I understand your issue, but basically if you need to get data from two different VLANs on one Interface you will need to declare your interface a trunk(trunk mode). Then you need to assign the two vlans to your interface. vlan1 is the native vlan(not tagged). It will usually work on default on each interface. I don't know if you can use vlan0 or if you need to choose a number higher than 1.

bye,
busche
 
I figured it out already. But thanks anyway.

I assigned vlan0 to tag 8 and ip address 192.168.8.254/29
The other address 192.168.8.246/29 is added as an alias to the vlan interface.
 
Seem's you just configured two subnet adresses on one vlan (vlan1), wich is the default if you don't use trunking on your server interface. If you really want the subnets on two vlan's you wil have to use an ethernet adapter in your server that supports 802.1Q trunking. You will also need to configure your switchport for trunking, and i don't think you should use vlan 0 and 1 for this. Vlan 0 doesn't exist and Vlan 1 is often used as management vlan, and should'nt be used for systems.

Greetings,
Hans Combee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top