LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-12-2009, 10:03 AM   #1
yah0m
Member
 
Registered: Jul 2008
Posts: 38

Rep: Reputation: 15
Adding IPs


I'm trying to add a block of /28 (*.*.9.128/28) to my web server, but the block on another gateway then my other block. How do I go about adding the IP range?

I'm on CentOS 5.2
 
Old 02-13-2009, 03:11 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
http://www.xenocafe.com/tutorials/li..._nic/index.php
 
Old 02-13-2009, 03:23 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
(If you have a lot of IP to add, consider use range)

# nano -w /etc/sysconfig/network-scripts/ifcfg-eth0-range0
(add as following)

IPADDR_START=192.168.9.129
IPADDR_END=192.168.9.142
CLONENUM_START=0

(save it and restart network)
now check with this command
#/sbin/ifconfig -a | grep "inet add" | cut -f2 -d\: | cut -f1 -d" "
 
Old 02-13-2009, 03:33 AM   #4
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
sexy!
 
  


Reply



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
Adding IPs in bulk kevin9 Linux - Networking 5 04-15-2006 05:45 PM
Adding virtual ips to fedora 3 linchat Linux - Networking 2 09-17-2005 07:31 PM
Adding Multiple Ips to 1 Interface kemplej Slackware 1 12-27-2004 09:18 AM
adding IPs DigiCrime *BSD 10 07-14-2003 01:58 PM
adding ips to red hat 7.1 server antigravityboy Linux - Networking 1 08-27-2001 08:49 AM

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

All times are GMT -5. The time now is 03:06 PM.

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