hey, setting up a server for a friend which has 2 network interfaces.
One on the inside lan with a bogus 10.x.x.x address.. the outside interface has
a valid routable
ip adderss. The inside interface is natted through a firewall to the internet.
that works fine
and dandy.. BUT, when I run my vlc server on the ouside interface, and contact
it from a host on
the internet, the outside interface gets the packet, but seems to route it out
its default
gateway through the inside interface. I understand the problem, but what im
trying to figure out
is how to do something like
http://linuxcult.blogspot.com/2006/05/how-can-i-have-two-default-routes.html
but I keep getting errors when trying to implement the commands ..
eth0 Link encap:Ethernet HWaddr 00:16:35:B0:D3:1F
inet addr:10.1.22.44 Bcast:10.1.255.255 Mask:255.255.0.0
eth1 Link encap:Ethernet HWaddr 00:16:35:B0:D3:1E
inet addr:208.11.172.91 Bcast:208.11.172.95 Mask:255.255.255.224
badger ~ # cat /etc/iproute2/rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
222 vlc
badger ~ # ip route add table vlc default via 208.11.172.65 <--this doesnt
work
RTNETLINK answers: File exists
badger ~ # ip route add table vlc default via 208.11.172.65 metric 1 <-this
works
but im not sure if its right.
badger ~ # ip route add default via 208.11.172.65 dev eth1 table vlc <-need to
get this to work
RTNETLINK answers: File exists
the error is ambiguous at best. and searching google doesnt yield much of
anything thats
helpful. any ideas how to implement this?
badger ~ # ip route show table main
208.11.172.64/27 dev eth1 proto kernel scope link src 208.11.172.91
10.1.0.0/16 dev eth0 proto kernel scope link src 10.1.22.44
127.0.0.0/8 dev lo scope link
default via 10.1.0.1 dev eth0
default via 208.11.172.65 dev eth1 metric 1
badger ~ #
Jason
--
================================================
| Jason Welsh [EMAIL PROTECTED] |
| http://monsterjam.org DSS PGP: 0x5E30CC98 |
| gpg key: http://monsterjam.org/gpg/ |
================================================
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/