Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-03-2004, 01:11 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Distribution: gentoo
Posts: 9
Rep:
|
two routing tables
I want to set up two routing tables for my linux router. one table i want it to use all the time. and the other table i want it to use when a certain web site is trying to be accessed. how do i set this up.
Last edited by fugzi; 12-03-2004 at 01:13 PM.
|
|
|
12-03-2004, 02:17 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
What are you trying to accomplish? If you're wanting to create a blackhole for a certain website, just block access to it with iptables (or set a host entry pointing it to 127.0.0.1 if it's just for that box). If you're wanting to take an alternate path to that website, do route add <website IP> <nexthop IP>
|
|
|
12-03-2004, 06:02 PM
|
#3
|
LQ Newbie
Registered: Aug 2003
Distribution: gentoo
Posts: 9
Original Poster
Rep:
|
well i have sorta a odd configuration and am having trouble with a website that i visit. the web site uses a kebros login and will only auth for 1 ip range. i have 4 wans that get load balanced though 3 daul wan routers. 2 wans for for each router and then an other daul wan to load balance them. i have one of the routers on the same group of ip addresses. so i want to direct all traffic to my.website.edu to 172.16.62.1 instead of the default gw 10.16.60.1. the linux box that i am using has 3 eth cards in it. eth0 is set up for testing on the wan right now with ip address 10.16.62.241. then eth1 is the card i want to direct all traffice to my.website.edu to. and eth2 is local
Last edited by fugzi; 12-03-2004 at 06:05 PM.
|
|
|
12-03-2004, 06:08 PM
|
#4
|
LQ Newbie
Registered: Sep 2004
Location: Bulgaria
Distribution: Fedora
Posts: 14
Rep:
|
as says sigsegv you just need to say your linux, that you want to go to my.website.edu throught 172.16.62.1
route add -host my.website.edu.ip 172.16.62.1
Good luck!
|
|
|
12-03-2004, 06:27 PM
|
#5
|
LQ Newbie
Registered: Aug 2003
Distribution: gentoo
Posts: 9
Original Poster
Rep:
|
|
|
|
12-03-2004, 06:33 PM
|
#6
|
LQ Newbie
Registered: Aug 2003
Distribution: gentoo
Posts: 9
Original Poster
Rep:
|
when i use that scheme, i get an error "SIOCADDRT: No such device"
here is the cmd:
Code:
route add -host 169.237.x.x 172.16.62.1
here is my current routing table:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.62.0 * 255.255.255.248 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth2
10.16.60.0 * 255.255.254.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 10.16.60.1 0.0.0.0 UG 0 0 0 eth0
|
|
|
12-03-2004, 06:45 PM
|
#7
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
What IP do you have on 172.16.62.0/29? It thinks you're not on the same network as 172.16.62.1 (and if you're above 172.16.62.6, it's right)
|
|
|
12-03-2004, 07:02 PM
|
#8
|
LQ Newbie
Registered: Aug 2003
Distribution: gentoo
Posts: 9
Original Poster
Rep:
|
the ip is 172.16.62.3 for the linux box with the same mask
Last edited by fugzi; 12-03-2004 at 07:09 PM.
|
|
|
All times are GMT -5. The time now is 02:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|