Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "louie miranda" <lmiranda@chikka.com>
To: netfilter@lists.netfilter.org
Subject: 2 internet link problem (forwarding help i think?)
Date: Fri, 13 Dec 2002 16:36:28 +0800	[thread overview]
Message-ID: <003301c2a282$babc5c70$0b00000a@nocpc3> (raw)
In-Reply-To: 3DF98B3D.5010104@libero.it

Hi things i have to clear first!

DEFAULT GATEWAY = 203.100.100.1
MACHINE's (primary) IP = 203.100.100.2 - NIC1
MACHINE's (secondary) IP = 203.100.100.3 - NIC2
MASQ BLOCK = 10.0.0.0/16 - NIC3

I have 3 NIC Cards, My only problem is i want to route all my MASQ BLOCK
that when they
access IP BLOCK 203.100.200.0/24 they will come out on NIC2 (Secondary IP of
my machine)
And all other packets to its default route.

Is this possible? Im currently mixed up also when i tried to add the `route`
on linux when i ping
that ip, the secondary IP will not work anymore but my default route to NIC1
will be still the same.

Its like this, I can access 203.100.100.3 (Im not yet adding my secondary
ip/route) When i add
my secondary ip/route 203.100.100.3 "ifconfig eth2 203.100.100.3 netmask
255.255.255.240 up"
I can no longer access 203.100.100.3 But all of my other connections are
working except for that.

my kernel routing table after adding.. (not real ip's)

panic:/# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
203.100.100.*  0.0.0.0         255.255.255.248 U     0      0        0 eth0
203.100.100.*  0.0.0.0         255.255.255.240 U     0      0        0 eth2
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         203.100.100.1  0.0.0.0         UG    0      0        0 eth0


Hope someone can help!


--
thanks,
louie miranda




--
thanks,
louie miranda




      reply	other threads:[~2002-12-13  8:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-12 18:00 bandwidth Andrew J. Meader
2002-12-12 19:14 ` bandwidth Rob Sterenborg
2002-12-13  7:24   ` bandwidth Blizzards
2002-12-13  8:36     ` louie miranda [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003301c2a282$babc5c70$0b00000a@nocpc3' \
    --to=lmiranda@chikka.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox