13
Jan

Manually Adding IP Address Range to Linux – Fedora and Redhat – Thanks @Softlayer

Thanks to Softlayer for this handy tutorial, worked like a charm adding my new IP Range.

1. Determine what existing range files exist:

# cd /etc/sysconfig/network-scripts/

# ls ifcfg-eth1-range*

You will see at least one file, possibly several. Find the highest number following the “range” and add one to it. This will be the new range number.

For example, if you see ifcfg-eth1-range0 and ifcfg-eth1-range1, your new range number will be “2″ ie: ifcfg-eth1-range2 .

2. Determine the next available interface number (clone number).

# ifconfig | grep eth1

You will see a list of interfaces that looks like this
eth1 Link encap:Ethernet HWaddr 00:08:74:A3:29:70
eth1:0 Link encap:Ethernet HWaddr 00:08:74:A3:29:70
eth1:1 Link encap:Ethernet HWaddr 00:08:74:A3:29:70
.
.
.
eth1:8 Link encap:Ethernet HWaddr 00:08:74:A3:29:70

Find the highest number after the “eth1:”. Add one to it and this your new clone number. In this case it would be 9.

3. create a range file for the new range number. (for this example, we will use range3)

# vi ifcfg-eth1-range2

4. Write the following lines to the range file. (replace the dummy ip information with your desired ip range and the CLONENUM_START value with the one calculated above)

IPADDR_START=’123.0.0.1′
IPADDR_END=’123.0.0.10′
CLONENUM_START=’9′

5. Write and quit the range file, and restart your network.

# /etc/init.d/network restart

6. Your new ips should now be visible by running:

# ifconfig

Find Me
Post Calendar
May 2012
M T W T F S S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031  
Twitter
The 10 Best-Branded Companies on Instagram http://t.co/C2A8fUl3
12 hours ago
SearchCap: The Day In Search, May 18, 2012 http://t.co/xhpugaQd
13 hours ago
got the chicken salad per @chisl3v request :) (@ Chick-fil-A) http://t.co/QiAnx67X
15 hours ago
Who's REALLY at Fault for GM's Facebook Ad Failure? http://t.co/leZ8wtDG
17 hours ago
How to Use LinkedIn Emails to Generate Loads of Leads http://t.co/bMs409mg
18 hours ago
Dylan Hoffman’s Pirate Times Doodle 4 Google Wins Pirate Booty http://t.co/YYH9nCLP
21 hours ago
Ways to Win Customers and Influence Rankings - Whiteboard Friday http://t.co/kiiqzEWb
1 day ago
@Steveology sadly Godaddy
1 day ago
About Geilt
Alexander Conroy is Chief Optimization Officer and Co-President of Esotech in Miami Florida
Google+ Statistics
Empire Avenue
© Copyright 2010-2012 Geilt. All rights reserved. Created by Dream-Theme — premium wordpress themes. Proudly powered by WordPress.