Simple Dual NIC setup

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux