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.
|
 |
10-24-2005, 11:59 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 4
Rep:
|
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
|
|
|
10-25-2005, 11:17 AM
|
#2
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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?
|
|
|
10-25-2005, 10:42 PM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 4
Original Poster
Rep:
|
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
|
|
|
10-26-2005, 12:13 AM
|
#4
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
|
|
|
10-26-2005, 12:44 AM
|
#5
|
LQ Newbie
Registered: Oct 2005
Posts: 4
Original Poster
Rep:
|
Hey Snowbat, thanks, I'm going to read up on that and see if I can get it working.
Thanks again,
mikey
|
|
|
11-04-2005, 09:24 AM
|
#6
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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.
|
|
|
All times are GMT -5. The time now is 08:07 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
|
|