Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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 nameUnder Name server specifications:
- default domain= domain name provided by your ISP
- IP name of server 1 (and optionally, 2)= DNS IPs provided by ISPUnder 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.

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.

![]() |
![]() |
![]() |

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