Networking Forums

Networking Forums > Computer Networking > Linux Networking > Dual network configuration

Reply
Thread Tools Display Modes

Dual network configuration

 
 
lemonji1@yahoo.com
Guest
Posts: n/a

 
      06-28-2006, 03:49 PM
Hi,
Im a linux newbie and am trying to configure 2 networks on my computer.
I have 2 cards with 2 ports each so I bonded eth0 and eth2 to bond0,
eth1 and eth3 to bond1.

It works fine apart from the fact that I can only define 1 GATEWAY
which leaves 1 IP to be reachable only threw its own subnet.

Can anybody help me with this?

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      06-30-2006, 12:21 AM
On 28 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, and in Usenet
newsgroup comp.os.linux.misc in article
<(E-Mail Removed). com>, (E-Mail Removed)
wrote:

[Please don't multi-post. This article is on topic in comp.os.linux.networking
and therefore should NOT be posted to comp.os.linux.misc, which is for those
subjects that are not on topic in other Linux newsgroups.]

>Im a linux newbie and am trying to configure 2 networks on my computer.
>I have 2 cards with 2 ports each so I bonded eth0 and eth2 to bond0,
>eth1 and eth3 to bond1.


Normally, I wouldn't bring up the third and fourth interface, as they
rarely are going to offer a benefit worth the hassle of configuring them.

>It works fine apart from the fact that I can only define 1 GATEWAY
>which leaves 1 IP to be reachable only threw its own subnet.


Correct. In the normal use in Linux, the word "GATEWAY" refers to that
external router that leads to the world. While it is possible to set
that up (see the Adv-Routing-HOWTO), it isn't common. Do not confuse
the term 'GATEWAY' (to the world) with 'gateway' as used in the 'route'
command and meaning a remote host leading to some other network, or the
ways microsoft uses the word 'Gateway' which is quite inconstant even
in the same windoze routing table.

Here is a more normal Linux routing table using gateways.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
192.168.2.0 192.168.1.6 255.255.255.0 UG 0 0 11695 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 420 lo
0.0.0.0 192.168.1.248 0.0.0.0 UG 0 0 2004 eth0

Here, the local net has two routers. One, 192.168.1.6, is the gateway to
another local network. The second, 192.168.1.248, is the gateway to the
world. To talk to hosts on the 192.168.1.0, no gateway is needed because
they are directly connected to this host, and it can talk directly to them.

Old guy
 
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
Dual NIC card configuration kones Windows Networking 3 01-02-2008 01:07 AM
Dual network cards John Windows Networking 5 08-25-2005 03:48 PM
DUAL DRIVER FOR DUAL-MODE dsc2770 =?Utf-8?B?bW90aGVyb2Y3?= Windows Networking 1 12-21-2004 11:01 AM
Networking config failures dual NIC configuration Dell Server/SBS2 =?Utf-8?B?SkRkb3Rjb20=?= Windows Networking 12 11-03-2004 01:19 PM
Dual card access point configuration MatB Wireless Internet 2 03-06-2004 09:58 AM



1 2 3 4 5 6 7 8 9 10 11