[ale] One NIC, two IP addresses on different VLANs?

Raj Wurttemberg rajaw at c64.us
Tue Nov 18 13:35:15 EST 2014


Ah! OK!  I didn't even notice the difference between the period and the
colon. Thank you for pointing that out.

I haven't tested it yet. I wanted to make sure it's OK with the client and
the network team before I did anything crazy. Haha!

Kind regards,
Raj


From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of LnxGnome
Sent: Tuesday, November 18, 2014 10:51 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] One NIC, two IP addresses on different VLANs?

Raj,

The #:# notation, like "eth0:0", implies an alias (secondary IP).

The #.# notation, like "eth0.0", implies a vlan (use vconfig).

On RHEL/CentOS like systems, you can add IPADDR2= and PREFIX2= (or
NETMASK2=) lines to the config file ifcfg-eth0 to add the IP at boot
(assuming NetworkManager isn't mangling anything).

--LnxGnome

On 11/18/14 10:38 AM, Chuck Payne wrote:
Raj,  

Have you tried, that so easy to test 

ifconfig eth0:1 172.16.1.10 netmask 255.255.0.0   

Then try to another ip on that network. If it doesn't work then 

ifconfig eth0:1 down 

Now I am thinking it might not work because of the vlans. 

On Tue, Nov 18, 2014 at 10:30 AM, Raj Wurttemberg <rajaw at c64.us> wrote:
Is it possible to have a NIC with multiple addresses on different VLANs?

Example:

eth0.0 == 10.1.1.10
eth0.1 == 172.16.1.10


Kind regards,
Raj Wurttemberg
rajaw at c64.us


_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo




-- 
Terror PUP a.k.a
Chuck "PUP" Payne
 
678 636 9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- Terrorpup
openSUSE Ambassador/openSUSE Member
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363
 
Have you tried SUSE Studio? Need to create a Live CD,  an app you want to
package and distribute , or create your own linux distro. Give SUSE Studio a
try.



_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo





More information about the Ale mailing list