LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2008, 10:35 PM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
2 Interfaces with different IP and gateways; clash?


Hi guys,

I am trying to migrate my webservers from one ISP to another, hence a need to change the IP. As I have sufficient network ports, I went ahead to set eth1 as the new IP, with the new gateway specified in the ifcfg-eth1 file.

The ifcfg-eth0 file contains the current ISP information.

eth0 is connected to a router, which gets its routing table via BGP from the ISP.

eth1 is connected directly to the new ISP.

Interestingly, once I configured appropriately, even before DNS change, my site cannot be accessed on the original IP (eth0). But if I configure my host file to direct the domain to the new IP, it will load.

Somehow, after inserting eth1 settings, eth0 will stop responding.

I have done this kind of migration before, and it went fine.
Not sure if I did anything wrong this time, but I was wondering if the BGP is an issue? First time I am dealing with BGP.

Also.. I tried specifying 2 gateways, one in each ifcfg file... though even without it I have no luck.

You guys any idea? Trying to do a migration as transparent as possible.
 
Old 04-21-2008, 10:55 PM   #2
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
hi guys,

i found out the problem is because after setting appropriate settings, the default gateway is my eth1. hence the failure for the current isp.

I remove the gateway from eth1, and everything work fine. I can access the site via both IP. question now is, can I specify separate gateway for each interface?

With my current setup, it just mean all traffic coming in from eth1, is going out eth0 right?
 
Old 04-23-2008, 09:06 PM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
guys.. so is it possible to have 2 intereface with 2 different gateways? I tried doing that but things won't work properly without a default gateway it seems...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clash with AMD? CatalystChilde Linux - Newbie 3 01-19-2005 11:12 PM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 05:01 PM
class id clash!or what? shrike_912 Programming 1 11-10-2004 11:54 AM
Browser clash :D eqxro Linux - Software 23 08-26-2004 11:31 AM
Multiple Interfaces Seperate Gateways? byersjlpa Linux - Networking 10 01-09-2003 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration