[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multiple IP's (virtual interfaces) on ONE VLAN?



Turbo Fredriksson wrote:
Currently I have 'eth0' and 'eth0:0'.

'Shortly', we'll be moving the office to another location (share office
space with another company), where they have VLAN's. They have given me
VLAN #20 and from what I can see (I'll be testing my setup later this week),
everything should be ok.

But what about the intranet server which have TWO addresses? I've tried
'eth0:0.20', 'eth0.20:0' (for the virtual interface) but neither worked...




/sbin/vconfig set_name_type VLAN_PLUS_VID_NO_PAD
/sbin/vconfig add eth0 20

/sbin/ip address add  1.1.1.1/23 dev vlan20
/sbin/ip link set vlan20 up

---- i guess you're here. just try to add something like this, only the two last rows:

/sbin/ip address add  2.1.1.1/23 dev vlan20:1
/sbin/ip link set vlan20:1 up

*this is if you've got tagged vlan port* and should work, not tested actually.

if you do have untaged port in the vlan - just ignore the fact about the vlan and carry on - it is just like plain ol' ethernet on your (untagged) side.

edi.


Reply to: