Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-09-2004, 10:20 PM   #1
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
Help Adding Ips to RedHat

I have a box and I'm TRYING to add new ips to it. its redhat linux. I know in BSD I'd add the aliases in rc.conf, but in linux i'm stumped. can someone tell me what to do, and if possible not assume that I know ANYTHIGN about linux?
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 10:22 PM   #2
CognitiveDissonance
Registered User
 
Join Date: Nov 2003
Posts: 25
man ifconfig
CognitiveDissonance is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 10:25 PM   #3
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
Quote:
Originally posted by CognitiveDissonance
man ifconfig
I looked there I also tried useing netconfig -d eh0:1

Nothing seems to work .
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 10:26 PM   #4
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
What version of redhat?

Check out /etc/sysconfig/networking ...
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 10:28 PM   #5
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
Red Hat Enterprise Linux ES release 3 (Taroon Update 1)
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 10:40 PM   #6
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
Anyone awake?
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 11:00 PM   #7
NemesisEnforcer
Confirmed User
 
NemesisEnforcer's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
Let's say you wanted to add the IP address is 66.218.71.198, you would enter:

/sbin/ifconfig eth0:1 66.218.71.198

Do this for all IPs you want to add. Don't forget to put them in your startup file so that when you reboot you don't have to rekey them.

Quote:
Originally posted by JulianSosa
I have a box and I'm TRYING to add new ips to it. its redhat linux. I know in BSD I'd add the aliases in rc.conf, but in linux i'm stumped. can someone tell me what to do, and if possible not assume that I know ANYTHIGN about linux?
NemesisEnforcer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 11:03 PM   #8
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
Quote:
Originally posted by NemesisEnforcer
Let's say you wanted to add the IP address is 66.218.71.198, you would enter:

/sbin/ifconfig eth0:1 66.218.71.198

Do this for all IPs you want to add. Don't forget to put them in your startup file so that when you reboot you don't have to rekey them.

Thanks man Can you please tell me where the startup file is?
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 11:46 PM   #9
NemesisEnforcer
Confirmed User
 
NemesisEnforcer's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
Use rc.local found at /etc/rc.d/rc.local

Quote:
Originally posted by JulianSosa


Thanks man Can you please tell me where the startup file is?
NemesisEnforcer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2004, 11:47 PM   #10
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
Quote:
Originally posted by NemesisEnforcer
Use rc.local found at /etc/rc.d/rc.local

THANK YOU.
YOU made my day
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-10-2004, 12:17 AM   #11
NemesisEnforcer
Confirmed User
 
NemesisEnforcer's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
I forgot to mention that if you're adding more than one IP address it would appear as follows:

/sbin/ifconfig eth0:1 66.218.71.198
/sbin/ifconfig eth0:2 66.218.71.199
/sbin/ifconfig eth0:3 66.218.71.200

Note the increment referencing your ethernet card for each IP.
NemesisEnforcer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-10-2004, 12:18 AM   #12
JulianSosa
Confirmed User
 
Join Date: Aug 2003
Posts: 3,042
Quote:
Originally posted by NemesisEnforcer
I forgot to mention that if you're adding more than one IP address it would appear as follows:

/sbin/ifconfig eth0:1 66.218.71.198
/sbin/ifconfig eth0:2 66.218.71.199
/sbin/ifconfig eth0:3 66.218.71.200

Note the increment referencing your ethernet card for each IP.

I worked that out thank.
JulianSosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-10-2004, 12:28 AM   #13
blazin
Confirmed User
 
Join Date: Aug 2002
Posts: 2,781
look in /etc/sysconfig/network-sc r ipts/

you will see some files like : ifcfg-eth0

copy this to ifcfg-eth0:1

then edit it naming the device eth0:1
and change the ipaddress

then type:

ifup ifcfg-eth0:1
blazin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-10-2004, 01:06 AM   #14
jerseygirls
Confirmed User
 
Join Date: Mar 2003
Location: NJ
Posts: 219
Blazin has it right for red hat.

YOu can also add a range of ip's with this config file:

Call the script (with 0 being a counter 0 thru whatever for each non sequential range you want to add): ifcfg-eth0-range0


and the contents of the file should be:
IPADDR_START=123.123.123.1
IPADDR_END=123.123.123.20
CLONENUM_START=0
BROADCAST=123.123.123.256
NETMASK=255.255.255.0
NETWORK=123.123.123.0
ONBOOT=yes

That would creat the ip's from 1 - 20

Obviously replace the network, broadcast, and netmask with your own info
jerseygirls is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-10-2004, 01:08 AM   #15
jerseygirls
Confirmed User
 
Join Date: Mar 2003
Location: NJ
Posts: 219
i forgot once you edit the files, i restart the network so the changes take place with:

/etc/rc.d/init.d/network restart




and then you can test your work with:

ifconfig
jerseygirls is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.