LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-29-2008, 08:07 PM   #1
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
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???
 
Old 09-02-2008, 11:02 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
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
 
Old 09-02-2008, 01:29 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by datopdog View Post
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?
 
Old 09-03-2008, 01:51 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
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
 
Old 09-03-2008, 02:46 AM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by datopdog View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 07:40 PM
Broadcast over Vlans cristian123 Linux - Networking 6 08-30-2007 03:07 PM
wrap lines at 80 for long aliases in .aliases.csh jhwilliams Linux - Software 0 07-26-2007 07:49 AM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
VLANs understanding twantrd General 3 12-13-2005 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration