Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 NICs, 2 LANs

Reply
Thread Tools Display Modes

2 NICs, 2 LANs

 
 
Joe Jerome
Guest
Posts: n/a

 
      11-06-2006, 01:18 PM
Hello!

Ich have Suse 10.1 with 2 Networkcards. One Card for a Network 121.120.44.140 nm
255.255.255.192 . The other with 121.120.177.41 nm 255.255.255.192. So these are routeable
ipnumbers on different VLANs.

I cannot setup these cards correctly. I can only have one defaultroute for both networks
(this is correct?). Ip forwarding is disabled...

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
121.120.177.0 0.0.0.0 255.255.255.192 U 0 0 0 eth1
121.120.44.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 121.120.44.129 0.0.0.0 UG 0 0 0 eth0


I cannot reach 121.120.177.41 from outside and I cannot reach any 121.120.177.x hosts.

Any help?

-jere
 
Reply With Quote
 
 
 
 
Paul Black
Guest
Posts: n/a

 
      11-06-2006, 01:53 PM
Joe Jerome wrote:
> Hello!
>
> Ich have Suse 10.1 with 2 Networkcards. One Card for a Network 121.120.44.140 nm
> 255.255.255.192 . The other with 121.120.177.41 nm 255.255.255.192. So these are routeable
> ipnumbers on different VLANs.
>
> I cannot setup these cards correctly. I can only have one defaultroute for both networks
> (this is correct?). Ip forwarding is disabled...
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 121.120.177.0 0.0.0.0 255.255.255.192 U 0 0 0 eth1
> 121.120.44.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 121.120.44.129 0.0.0.0 UG 0 0 0 eth0
>
>
> I cannot reach 121.120.177.41 from outside and I cannot reach any 121.120.177.x hosts.


Three things that spring to mind:
- You need to have IP forwarding enabled to reach 121.120.177.x hosts
from outside (by which I presume you mean machines other than "this"
one).
- Do the "outside" hosts know the route to 121.120.177.x?
- Do you have a firewall?

--
Paul
 
Reply With Quote
 
Philippe WEILL
Guest
Posts: n/a

 
      11-06-2006, 02:03 PM


Joe Jerome wrote:
> Hello!
>
> Ich have Suse 10.1 with 2 Networkcards. One Card for a Network
> 121.120.44.140 nm 255.255.255.192 . The other with 121.120.177.41 nm
> 255.255.255.192. So these are routeable ipnumbers on different VLANs.
>
> I cannot setup these cards correctly. I can only have one defaultroute
> for both networks (this is correct?). Ip forwarding is disabled...
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
> Iface
> 121.120.177.0 0.0.0.0 255.255.255.192 U 0 0 0
> eth1
> 121.120.44.128 0.0.0.0 255.255.255.192 U 0 0 0
> eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 121.120.44.129 0.0.0.0 UG 0 0 0
> eth0
>
>
> I cannot reach 121.120.177.41 from outside and I cannot reach any
> 121.120.177.x hosts.
>
> Any help?
>
> -jere


Does the two vlan are routed by an external routers or it' your host
which is router for the second subnet

if first solution you could try echo 1 > net.ipv4.conf.default.rp_filter

it's not the best solution but it's could be work

or as nicest solution go to advanced routing with source routing



for second solution your default gateway should know the route for subnet
behind your server and you need to activate IP forwarding
 
Reply With Quote
 
Snowbat
Guest
Posts: n/a

 
      11-06-2006, 08:22 PM
On Mon, 06 Nov 2006 15:18:56 +0100, Joe Jerome wrote:

> Ich have Suse 10.1 with 2 Networkcards. One Card for a Network
> 121.120.44.140 nm 255.255.255.192 . The other with 121.120.177.41 nm
> 255.255.255.192. So these are routeable ipnumbers on different VLANs.
>
> I cannot setup these cards correctly. I can only have one defaultroute
> for both networks (this is correct?).


Normally yes. If you want to route traffic via multiple links, see:
http://www.tldp.org/HOWTO/Adv-Routin...ple-links.html

--
Posted via a free Usenet account from http://www.teranews.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking two LANs with 802.11n? ***** charles Linux Networking 7 03-16-2007 12:52 PM
2 lans and IE ramrod Wireless Internet 9 10-02-2006 10:37 PM
separating LANs? gglave@softtracks.com Windows Networking 9 01-13-2006 07:16 PM
two lans through vpn Salvatore Windows Networking 3 01-20-2005 08:55 AM
Bridging LANs Ben Broadband Hardware 5 03-05-2004 09:58 AM



1 2 3 4 5 6 7 8 9 10 11