Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Network Alias and multiple networks on 1 NIC

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 04-20-12, 02:03 PM Thread Starter   #1
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
Network Alias and multiple networks on 1 NIC


So I have this laptop which is serving as my local repository. I recently wanted to spin off a network for Virtual Machines (.122.*). Running Centos 6.2 I tried putting these in /etc/sysconfig/network-scripts

ifcfg-eth0
Code:
HWADDR=00:08:74:3E:86:30
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.99.247
PREFIX=24
GATEWAY=192.168.99.253
DNS1=192.168.99.253
DOMAIN=stratus-sphere
IPV6INIT=no
ONBOOT=yes
ifcfg-eth0:1
Code:
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.122.247
PREFIX=24
GATEWAY=192.168.122.233
DNS1=192.168.122.233
DOMAIN=stratus.local
ONBOOT=yes
HWADDR=00:08:74:3E:86:30
No matter what I do, it will only activate one or the other and not both. I have followed the Red Hat docs, as well as online guides and this should be all I need to do with what I have read.

Anyone have any pointers?

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"

Last edited by Stratus_ss; 04-24-12 at 07:24 AM.
Stratus_ss is online now Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 04-23-12, 04:02 AM   #2
Go3Team
Member

 
Go3Team's Avatar 

Join Date: Aug 2002
Location: Richmond, VA

 
The virtual nic should be named ifcfg-eth0:1

Rename the config file, restart the network, and run ifconfig. The virtual interface should be listed.
Go3Team is offline   QUOTE Thanks
Old 04-23-12, 09:09 AM   #3
splat
ASCII Moderator
Overclockers.com Lead Editor


 
splat's Avatar 

Join Date: Apr 2002
Location: Philly

10 Year Badge
 
I've used this method before, looks slightly different than what you are doing: http://blog.rackwire.com/2010/05/how...ans-in-centos/

__________________
______________________________/\/\__________________/\/\_____
_______/\/\/\/\__/\/\/\/\____/\/\____/\/\/\______/\/\/\/\/\__
____/\/\/\/\____/\/\__/\/\__/\/\________/\/\______/\/\_______
_________/\/\__/\/\/\/\____/\/\____/\/\/\/\______/\/\________
__/\/\/\/\____/\/\________/\/\/\__/\/\/\/\/\____/\/\/\_______
_____________/\/\___________
once you clock you can't go stock
[RHCSA, RHCE] || articles || folding stats || overclockers last.fm group

splat is offline Author Profile   QUOTE Thanks
Thanks!
Stratus_ss (04-24-12)
Old 04-24-12, 07:23 AM Thread Starter   #4
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
Quote:
Originally Posted by Go3Team View Post
The virtual nic should be named ifcfg-eth0:1

Rename the config file, restart the network, and run ifconfig. The virtual interface should be listed.
I tried this (though that wasn't clear in my first post). This is how it is currently set. It still only activates the one IP

Splat, Thanks for that I will give that a try!

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"
Stratus_ss is online now Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 04-24-12, 11:01 PM Thread Starter   #5
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
The vlan suggestion worked.

I needed to append
Code:
VLAN=yes
Inside of my eth0.122 and eth0.99. Thanks!

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"
Stratus_ss is online now Author Profile Folding Profile Heatware Profile   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 06:56 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?