LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP aliases + VLANs, how to stack? (https://www.linuxquestions.org/questions/linux-networking-3/ip-aliases-vlans-how-to-stack-666388/)

chort 08-29-2008 08:07 PM

IP aliases + VLANs, how to stack?
 
I know how to create an alias, I know how to create a VLAN device, but how can I create aliases on VLANs, or VLANs on aliases? I tried vconfig on eth0:0, which failed. I tried to ifconfig eth0.111:0, which also failed. Anyone know how the heck you're supposed to configure multiple addresses on the same VLAN on the same physical interface???

datopdog 09-02-2008 11:02 AM

if using RHEL/Clones ifcfg-eth0.901:0 works. Contents as follows

Code:

DEVICE=eth0.901:0
BOOTPROTO=static
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.0
ONBOOT=yes
VLAN=yes

On debian.
Code:

auto vlan901:0
iface vlan901:0 inet static
        address xx.xx.xx.xx
        netmask 255.255.255.0


chort 09-02-2008 01:29 PM

Quote:

Originally Posted by datopdog (Post 3267272)
if using RHEL/Clones ifcfg-eth0.901:0 works. Contents as follows

Code:

DEVICE=eth0.901:0
BOOTPROTO=static
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.0
ONBOOT=yes
VLAN=yes


I tried that on CentOS 4.6 and it didn't work. Hmmmm. What version of Red Hat did you test it on?

datopdog 09-03-2008 01:51 AM

I am using that on centos 5.x, i do not think the initscripts package on 4.x supports it looking at the change log support for vlan aliases was added on Fri Jul 28 03:56:50 2006

chort 09-03-2008 02:46 AM

Quote:

Originally Posted by datopdog (Post 3268014)
I am using that on centos 5.x, i do not think the initscripts package on 4.x supports it looking at the change log support for vlan aliases was added on Fri Jul 28 03:56:50 2006

Figures :\

Well thanks for the info, that's exactly what I needed. I thought it should work like you described (which is the first thing I tried last week), so I was very surprised when it didn't.


All times are GMT -5. The time now is 02:19 PM.