Click to See Complete Forum and Search --> : Manually Configure IP address?


stingray72
11-20-2001, 08:51 PM
How do I manually configure my IP address w/out DHCP? also, how do I save those settings?

cypunk06
11-20-2001, 09:44 PM
after reading MANY post here, you know the drill :) what distro?
I can help if it's mandrake 7, under control panel in KDE, look for network settings, or config, cable/dsl modem

stingray72
11-20-2001, 10:00 PM
Well its Red Hat 7.2

I've found the Network configuration editor for KDE

What do I put under hostname on the TCP/IP settings? Do I need anything there?

I have my IP address set, my primary and secondary DNS addresses set.

I can get around my home network but can't get to the internet on my linux box. I don't really understand host names and local domains and such. WHat else could I give that would help???

stingray72
11-20-2001, 10:31 PM
Okay, I got it working, but when I made all the settings it wouldn't work until i rebooted the computer.

I did /sbin/ifconfig eth0 down and up before hand but that didn't work

Isn't there a way I can restart that process w/out having to reboot??

Thanks for the help

cypunk06
11-20-2001, 11:40 PM
host name is the ISP <aka mindspring.com>

stingray72
11-21-2001, 12:28 AM
Sorry, forgot to mention.. It's going through a Linksys 4 port router. I don't think the host name would be my ISP then would it?

DMR
11-21-2001, 02:01 AM
Originally posted by Gamecock1:
<STRONG>Sorry, forgot to mention.. It's going through a Linksys 4 port router. I don't think the host name would be my ISP then would it?</STRONG>In that case, your hostname can be whatever you want it to be. The hostname suplied by your ISP needs to be entered in the router setup, though. Your setup sounds similar to mine, although I'm using a Netgear 4-port gateway router as opposed to a Linksys. Here's how it works:

The router:
- I set the system name to the hostname supplied by my provider (AT&T@home).
- I set the domain name to that supplied by my provider.
- (*important*) Some providers validate a user/machine by the MAC address of the NIC the provider installed. From my Netgear manual : "Some ISPs will only accept traffic from the MAC address of one PC. If you selected the "use IP address attached on LAN" option, you must specify the IP address of the local PC with the MAC address to be used by the router."
- I use static addressing on my internal network, so I've diabled the DHCP server functionality of the router, and have assigned it's IP address on the internal network as 192.168.0.1.

For the computers on your internal network:
- Assign each an IP address, starting with 192.168.0.2.
- For the default gateway address, enter the address of the router (192.168.0.1).
- Each box gets a netmask of 255.255.255.0.

Hope this helps; repost if you have questions.

deadlock
11-21-2001, 04:48 AM
Try typing /etc/rc.d/init.d/network restart to restart the network daemons. That should bring up your eth0 interface. Oh, you have to be root to run that...

stingray72
11-21-2001, 08:57 AM
Thanks folks, I got it working statically last night. I appreciate all the help.

Now I have another problem. If I put my website on my host computer, when I try to access it, the router quits working. I've forwarded port 80 to my linux machine and Apache seems to be working. It (the router) will work for a little while and then quit.

Anyone heard of this? Thanks again.

[ 21 November 2001: Message edited by: Gamecock1 ]

mychl
11-21-2001, 11:43 AM
FYI in REDHAT 7.2 the network script is in /etc/init.d/network restart.

No more rc.d directory me thinks...