Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-27-2004, 10:50 AM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 2
Rep:
|
Changing Domain IP & DNS servers
We have a Redhat 7 Linux server acting as the gateway and firewall for our office network. We recently upgrade our DSL line to a new higher speed, which means we have new static IP addresses and new DNS servers, and a new DSL Modem/Router with a new gateway address. I'm trying to get our server to route email, host the website, and route internet traffic through the new DSL line. I tried editing the following files:
/etc/hosts
/etc/resolv.conf
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth1 (ifcfg-eth0 is for our internal network, and I don't think it needs to change)
I changed the addresses in those files, but it didn't seem to work. Are there some configuration files that I'm missing that I need to change? Anywhere else that might tell the server what it's IP address is and how to route traffic? Any help would be greatly appreciated.
The current server configuration is doing everything we need to do and working great plugged into the old DSL line. It simply doesn't route traffic when switched to the new line.
|
|
|
09-27-2004, 11:38 AM
|
#2
|
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188
Rep:
|
make sure about network configuration.
u can check them with followings:
ifconfig
route -n
etc...
and your firewall configuration?? probably your firewall-NAT script is generated for old network configuration. so u will probably have to reconfigure it. and u have an old version of redhat. what does it use for firewalling/NAT ?
i think it has ipchains. check the output of followings.
#rpm -qa |grep ipchains
#rpm -qa |grep iptables
#rpm -qa|grep ipfwadm
if u have iptables, i can help u about it. if it isnt, sorry i dont know others
good luck.
|
|
|
09-27-2004, 02:59 PM
|
#3
|
LQ Newbie
Registered: Sep 2004
Posts: 2
Original Poster
Rep:
|
Thanks, I got it
Maxut: Thanks for your rapid response. I do have iptables installed, but it turned out to be easier than I thought.
Since everything was already configured correctly, I just used grep to locate all instances of the old domain ip, old DNS ips, and old Gateway ip. I edited all those files, and viola, it worked. I ended up having to edit the following files, if anyone else runs into this problem:
/etc/hosts
/etc/resolv.conf
/etc/sysconfig/network
/etc/sycsonfig/network-scripts/ifcfg-eth1
/etc/portsentry/portsentry.ignore
/etc/rc.d/rc.firewall
Thanks for the response.
|
|
|
09-28-2004, 09:42 AM
|
#4
|
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188
Rep:
|
good
thnx for posting the easy solition.
|
|
|
All times are GMT -5. The time now is 12:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|