Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Rudi Starcevic <tech@wildcash.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Simple Dual NIC setup
Date: Fri, 10 Feb 2006 02:38:46 +0000	[thread overview]
Message-ID: <43EBFCB6.4060701@wildcash.com> (raw)

Hello,

I'm having some problems I can't see trying to configure
two network cards.

I have eth0 and eth1.

On eth0 I have 10.1.1.1.1
ON eth1 I have 192.168.2.250

After my script runs I can ping the 10.1.1.0/24 network
but not the 192.168.2.0/24 network.

192.168.2/24 is network un-reachable .... Hmmm ...

Can you check over my 6 commands below and see where my problem is?

Many thanks.
Regards,
Rudi.




Routing Tables

255     local
254     main
253     default
0       unspec
#
# local
#
#1      inr.ruhep
200     implan
201     inet

echo "Setup NIC 0"
ip addr add 10.1.1.1/24 dev eth0 brd +

echo "Setup NIC 1"
ip addr add 192.168.2.250/24 dev eth1 brd +

echo "Setup Default Route [ inet table ]"
ip route add default via 10.1.1.254 proto static table inet

echo "Setup LAN Route [ implan table ]"
ip route add 192.168.2/24 via 192.168.2.250 proto static table implan

echo "Setup LAN ip rule"
ip rule add to 192.168.2/24 prio 16000 table implan

echo "Setup Internet ip rule"
ip rule add to 0/0 prio 17000 table inet
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2006-02-10  2:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=43EBFCB6.4060701@wildcash.com \
    --to=tech@wildcash.com \
    --cc=lartc@vger.kernel.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