Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

CentOS 6.3 & Subnets
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

CentOS 6.3 & Subnets

vapornodevapornode Member
edited December 2012 in Help

I have a group of IPv4 addresses spread among 3 different subnets. How do I add these to a server with CentOS 6.3 installed? I know how to do it when they're all on the same subnet but...that doesn't really apply here.

Any help is appreciated


  • jarjar Patron Provider, Top Host, Veteran

    Example would be eth0, eth0:1, eth0:2

  • If these subnets have separate gateways, add a route to dev and the iface to the gws first, then just add them normally.

  • Could I create files called ifcfg-eth0:0, ifcfg-eth0:1, etc with DEVICE, TYPE, IPADDR, and GATEWAY attributes?

  • jarjar Patron Provider, Top Host, Veteran

    Then just run ifup eth0:0 (etc). Having a moment where I can't recall if restarting the network service is necessary. I swear anytime I go 2 weeks without doing something it starts to fade...

  • Ah got it - thanks!

  • btw you don't need to do that if you're going to use those IPs for VPS boxes running on that server.

Sign In or Register to comment.