LinuxQuestions.org
Review your favorite Linux distribution.
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 10-24-2005, 11:59 PM   #1
mikey3
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
Question Two network cards, multihomed-public ips, not working?


Hey Guys,

Hopefully someone can help me with this. I'm using Fedora Core 4 and I have two network cards on my machine. I'm trying to get both to listen on public ip addresses, and while I can do that it's not actually working correctly...

Code:
;ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
BROADCAST=69.28.179.135
IPADDR=69.28.179.134
NETMASK=255.255.255.248
ONBOOT=yes
TYPE=Ethernet
GATEWAY=69.28.179.129
Code:
;ifcfg-eth1

DEVICE=eth1
BOOTPROTO=static
BROADCAST=205.134.130.191
IPADDR=205.134.130.190
NETMASK=255.255.255.240
ONBOOT=yes
TYPE=Ethernet
GATEWAY=205.134.130.177
Routing table:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
69.28.179.128   *               255.255.255.248 U     0      0        0 eth0
205.134.130.176 *               255.255.255.240 U     0      0        0 eth1
default         205.134.130.177 0.0.0.0         UG    0      0        0 eth1
Okay, with the default route in the routing table I can get in and out of my server via either ip address. If it's not there, I can't. If I ifconfig eth1 down I can't get in via eth0, so basically it's not routing correctly. I don't really know exactly whats wrong, so if someone could please take a moment I would really appreciate it.

The point of what I'm trying to do is to make my server accessible via the other network card if one goes down.

Thank you,
mikey
 
Old 10-25-2005, 11:17 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I'm not great at this yet, but what diagnostics have you tried already?

How about ifconfig & route info. before & after taking an i'face down & maybe back up:
Code:
ifconfig eth0; ifconfig eth1; route
ifconfig eth1 down
ifconfig eth0; ifconfig eth1; route
ifconfig eth1 up
ifconfig eth0; ifconfig eth1; route
Does this give any insight?
 
Old 10-25-2005, 10:42 PM   #3
mikey3
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Hey Archtoad6,

Here is the output from those commands:
Code:
eth0      Link encap:Ethernet  HWaddr 00:03:FF:A2:FE:37  
          inet addr:69.28.179.134  Bcast:69.28.179.135  Mask:255.255.255.248
          inet6 addr: fe80::203:ffff:fea2:fe37/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:182571 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5428 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11614886 (11.0 MiB)  TX bytes:1528396 (1.4 MiB)
          Interrupt:11 Base address:0xa000 
;------------------------------------
eth1      Link encap:Ethernet  HWaddr 00:03:FF:A0:FE:36  
          inet addr:205.134.130.190  Bcast:205.134.130.191  Mask:255.255.255.240
          inet6 addr: fe80::203:ffff:fea0:fe36/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19115 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12659 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1840505 (1.7 MiB)  TX bytes:6589840 (6.2 MiB)
          Interrupt:11 
;------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
69.28.179.128   *               255.255.255.248 U     0      0        0 eth0
205.134.130.176 *               255.255.255.240 U     0      0        0 eth1
default         core01.titanium 0.0.0.0         UG    0      0        0 eth0
default         205.134.130.177 0.0.0.0         UG    0      0        0 eth1
;------------------------------------
eth0      Link encap:Ethernet  HWaddr 00:03:FF:A2:FE:37  
          inet addr:69.28.179.134  Bcast:69.28.179.135  Mask:255.255.255.248
          inet6 addr: fe80::203:ffff:fea2:fe37/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:182573 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5430 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11615158 (11.0 MiB)  TX bytes:1528570 (1.4 MiB)
          Interrupt:11 Base address:0xa000 
;------------------------------------
eth1      Link encap:Ethernet  HWaddr 00:03:FF:A0:FE:36  
          inet addr:205.134.130.190  Bcast:205.134.130.191  Mask:255.255.255.240
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:19116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12659 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1840565 (1.7 MiB)  TX bytes:6589840 (6.2 MiB)
          Interrupt:11 
;------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
69.28.179.128   *               255.255.255.248 U     0      0        0 eth0
default         core01.titanium 0.0.0.0         UG    0      0        0 eth0
;------------------------------------
eth0      Link encap:Ethernet  HWaddr 00:03:FF:A2:FE:37  
          inet addr:69.28.179.134  Bcast:69.28.179.135  Mask:255.255.255.248
          inet6 addr: fe80::203:ffff:fea2:fe37/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:182575 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5433 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11615341 (11.0 MiB)  TX bytes:1530324 (1.4 MiB)
          Interrupt:11 Base address:0xa000 
;------------------------------------
eth1      Link encap:Ethernet  HWaddr 00:03:FF:A0:FE:36  
          inet addr:205.134.130.190  Bcast:205.134.130.191  Mask:255.255.255.240
          inet6 addr: fe80::203:ffff:fea0:fe36/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12661 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1840565 (1.7 MiB)  TX bytes:6590008 (6.2 MiB)
          Interrupt:11 
;------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
69.28.179.128   *               255.255.255.248 U     0      0        0 eth0
205.134.130.176 *               255.255.255.240 U     0      0        0 eth1
default         core01.titanium 0.0.0.0         UG    0      0        0 eth0
I'm not too experienced with this, thus my post, but I think the interesting line is "default core01.titanium 0.0.0.0 UG 0 0 0 eth0" is it not?

Thank you,
mikey
 
Old 10-26-2005, 12:13 AM   #4
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
See http://lartc.org/howto/lartc.rpdb.multiple-links.html
 
Old 10-26-2005, 12:44 AM   #5
mikey3
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Hey Snowbat, thanks, I'm going to read up on that and see if I can get it working.

Thanks again,
mikey
 
Old 11-04-2005, 09:24 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Sorry to be silent so long, excuses:
  • Interesting Q -- requires quiet thought.
  • GF has long list of "honey-do's".
  • Hard drive crash on firewall -- required complete rebuild.
I'll post again soon -- soon as I can spend the time on it that I want to.
 
  


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
linux as3 working as router with 2 public IPs rajeshdogra Linux - Networking 1 07-18-2005 07:53 AM
Firewall - filter for public IPs caremaker Linux - Networking 6 01-09-2004 12:17 PM
Public IPs behind router Buzer Linux - Networking 2 09-20-2003 01:36 PM
Sharing two public IPs. Unseen Linux - Networking 8 03-20-2003 01:17 PM
Multiple NIC cards - public and private IPs harryinjapan Linux - Networking 2 12-02-2001 04:25 AM

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

All times are GMT -5. The time now is 07:16 PM.

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