Computing.Net > Forums > Linux > Assigning an IP address in redhat 7.1

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Assigning an IP address in redhat 7.1

Reply to Message Icon

Name: Matt Taylor
Date: August 27, 2001 at 14:53:21 Pacific
Comment:

I've been using dhcp to configure my network connection for my Redhat 7.1 computer. It's been working great but now I have to assign a live ip address to use my mail server. I've tried ifconfig and linuxconf with no success. But, I might be using it wrong. I'm almost positive there isn't an IP confict so I don't know what to do from here. If anyone could please help I would greatly appreciate it. Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: DMR
Date: August 27, 2001 at 22:43:50 Pacific
Reply:

Not sure I quite understand the question. Could you describe your network in more detail?

If you have to move from DHCP to static addresses as a whole, you *should* be able to do the follwing (as root):

In linuxconf:

Choose Host name and IP network devices --> Adaptor 1.
- Config Mode= Manual
- primary name and domain= the name returned to you when you type "hostname" at a command prompt.
- IP Address= the static IP assiged by your ISP
- Netmask= netmask assigned by ISP
- Net Device= eth0
- Kernel Module= your NIC's module name

Under Name server specifications:
- default domain= domain name provided by your ISP
- IP name of server 1 (and optionally, 2)= DNS IPs provided by ISP

Under Routing and gateways
- this will depend on what kind of network you are on, and if you use a gateway/firewall. If you're just connecting to a cable or DSL modem, the gateway will be the IP of that device. If you're behind a hardware firewall/router, the gateway IP will be that of the router.

To do things manually, you'll have to:
- assign the static IP to eth0 using "ifconfig eth0 xxx.xxx.xxx.xxx up", where xxx.xxx.xxx.xx is the static IP assigned to you.
- add the default gateway using "route add default gw yyy.yyy.yyy.yyy, where yyy.yyy.yyy.yyy is the address of the gateway machine/device.
- add your DNS IPs to /etc/resolv.conf, in the form of:

domain=Domain_Name_Provided_By_ISP
nameserver=Primary_DNS_Server's_IP
nameserver=Secondary_DNS_Server's_IP


I'm doing the manual part from memory, so I might have missed somthing, but that's the basic idea. I'm sure someone else here can fill in any pieces I missed.


0

Response Number 2
Name: Matt Taylor
Date: August 28, 2001 at 06:22:45 Pacific
Reply:

I'm not for sure I can describe my network in greater detail. I'm a technician and share a building with an ISP. I'm trying to move further toward the networking end of things. I sure your wandering why I just don't ask my ISP how things are set up etc. etc. The answer more or less is that I'm trying to set it up myself so I can learn. I know we're behind a router and think that we have a dhcp server set up??? Excuse my ignorence. But thanks for the information I'm sure it will help considerably - I'm the only one at the shop that knows anything about linux so I can't ask them.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Assigning an IP address in redhat 7.1

how to install a lan card in redhat 7.1 www.computing.net/answers/linux/how-to-install-a-lan-card-in-redhat-71/10510.html

Dial-up services in RedHat 7.1 www.computing.net/answers/linux/dialup-services-in-redhat-71/5712.html

TaskBar in Redhat 7.1 www.computing.net/answers/linux/taskbar-in-redhat-71/4029.html