Networking :: Static Routes Between Two LANS Each With Their Own ADSL Line Out

Sep 4, 2010

GNU/Linux gods, guides and superbrains.Don't be moddest. I'ts YOU i'm taking about!I'll be your humble problem-describer-pixie / solution-testing-smerf :

Andreas Vinther, 1977, from Denmark

I'm trying to establish a connection between two seperate ADSL LANs (coming into the house, but from separate ISPs) to a situation where all hosts on either LAN will be able to reach any host on eiher LAN WITHOUT having to use an excess of plastic routers around the house, and please no Wireless bridges. WiFi will only be available as Access Points.

I've heard that Debian does this kind of static routintg / RIP stuff quite well. And I just happen to have one lined up in the right place, that haven't got at snowballs chance in hell of running WINXP or above. But it kills at textbased datamanipulation/forwarding/rerouting/dropping/scanning ... so I'vew made up my mind. That is what I want to do... Now how do io get around doing stuff like that.

The Debian box is connected to both networks: Hostname: AsusAnd
(192.168.1.0/24 - TDC network)
and to
(192.168.15.0/24 - Profiber network)

Needless to say, but both netmasks are 255.25.255.0 hence the /24 The respective router's LAN addresses are 192.168.1.1 and 192.168.15.1 My Debian are locked to the following IP's (reserved DHCP):

eth0:192.158.1.56 via DHCP from 192.168.1.1
eth1:192.168.15.177 via DHCP from 192.168.15.1

So far so good - Now here we go ! This is not a scenario where i'd like to always want all network-packages to travel the shortest path, nor NESSESARILY use the other ISPs gateway if the first is down or slow, although that'll be super nice.

I suspect that'll involve router-protocols like RIP. I'll be super pleased to get some guidelines there as well, as i suspect it'll be quite easy to implement once everything else is in place. Although RIP isn't our main goal, it probably comes as a close second. I think we all would like as stable and fast a connection as possible.

I was actually so naive that i thought if i added two static routes to the two routers x.x.1.1 and x.x.15.1, that my problems would automatically be solved by my Debian box, and that it would automatically act as a gateway when the routers send their packages for the other net. As long as i was connected to both LANs at the same time.

Note: I haven't changed or tweaked the Debian kernel to do routing. this is a simple stable install from the net-inst.iso of Debian 5. I'd like to keep it that way unless there's no way around it.

my routers have static routes to each other (WITH PROPER CABLING), configured as follows:

(On router with LAN 192.168.1.1)
[static route] to 192.168.15.0 with nmask 255.255.255.0 going throuhg gateway 192.158.1.56 ( Taken from above info ) - metric around 2
Similary on my other NIC directly cabled to another switch ---and-then-to-another---> Router

[code]....

View 1 Replies


ADVERTISEMENT

Fedora Networking :: Static Routes Aren't Added After Editing Routes-wlan0?

May 8, 2011

How do I add a route that doesn't go away after a reboot? I tried adding to /etc/sysconfig/network-scripts/route-wlan0 and /etc/sysconfig/static-routes but neither of them did anything when I restarted network and NetworkManager. route command does not show the new route that I added. I tried this too - routes.html and there were no errors but the new route doesn't show up with the route command.I added "192.168.13.88/255.255.255.255 via 192.168.13.101 dev wlan0"

View 2 Replies View Related

Networking :: How To Setup Static Routes - Gateway ?

Jan 18, 2011

I have a temporary system up with wlan0 and eth2.

I want the eth0 address to be the gateway for accessing the internet on wlan0.

How do I setup static routes?

I'm not too keen with networking...

Code:

View 1 Replies View Related

Networking :: Setup Static IP Routes On 4 Debian Machines?

Oct 30, 2009

I have 4 debian boxes networked together through a basic 5 port switch. I am trying to simulate 2 Local Area Networks joined together by a WAN. Right now I can communicate with A <--> B, B<----> C, C<----->D. However, I cannot communicate with Host A to Host D which is the whole point of this experiment. It has to be my static routing is not right. This is a confusing area to me. Right now my routes are

[code]....

View 1 Replies View Related

Slackware :: Keep Static Routes After Rc.inet1 Restart?

Jun 29, 2010

Is there a standard config file for saving static routes or "ip route" commands? i lose my static routes after every "/etc/rc.d/rc.inet1 restart".rc.local wouldn't be a good idea, because it's not run automatically after "/etc/rc.d/rc.inet1 restart"

View 5 Replies View Related

Slackware :: How To Setup Persistent Static Routes

Mar 23, 2011

how to setup persistent static routes in slackware? does slackware have some text file editing method like debian or redhat. ?

View 5 Replies View Related

Ubuntu Networking :: 10.04.1 - Connect To Adsl Using Command Line?

Oct 22, 2010

i cant connect to adsl with pon dsl-provider or any command line. just network manager applet GUI works for me. i follow this guide [URL] and try about 3 hours but without success. i edit /etc/network/interfaces following this thread: [URL] but after any alteration in /etc/network/interfaces and restart network my adsl connections are not work at all and also i lost my GUI applet connections too. then i have to back /etc/network/interfaces to its original content and restart my computer to restore my connections

pon dsl-provider error is:

Quote:

Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5

View 8 Replies View Related

Networking :: ADSL & Connects To Internet Via Leased Line

Jan 20, 2011

i have a leased line ( speed 2 MB ) which we use to connect to our mail server , oracle ERP etc.. we have a dhcp scope defined as 192.168.100.1-192.168.101.254. with a default gateway as 192.168.100.90 ( which is a cisco router ) we have a pix firewall ( 192.168.100.10 ).. now the gateway passed all the request to firewall..

we have an ADSL of 4 MB speed.. ip is 83.*.*.230 from ISP. i have a proxy server ( squid ) eth0 is connected to ISP (83.*.*.230).. eth1 to LAN ( 192.168.100.79 ) now the problem is when i put default gateway to eth1 ie 192.168.100.90 the squid connects to internet via leased line.. if i leave the default gateway field empty on eth1 , the squid connects to internet via ADSL ( which i want ) but the problem is no one on the lan cant ping the squid server ( no connectivity to internet for the whole LAN ) how can i solve this problem? i want squid to connect to internet with ADSL, but if i put gateway on eth1 ie LAN squid goes through leased line which i dont want to happen.

View 3 Replies View Related

Ubuntu Networking :: Increase Capacity / Bandwidth With More ADSL Line And Modem Combination

May 14, 2010

I am currently running a network with a file server that runs Ubuntu 10.04 Desktop at the moment. DHCP and samba are setup on it for now. Has multiple network cards but we only use the gigabit interface. Here's what I want to do in the near future. I want to provide internet access to the network via ADSL (no better option currently) So what i'll have is one or more ADSL lines and their corresponding modems (most likely D-link ones as they are cheap). As i understand it the server will be doing the job of a router. anyway, point wise here's what i want to be able to do:

1. Have ability to increase capacity/bandwidth with more ADSL line & modem combinations
2. Have user accounts (probably web based setup or any other option) for internet access so that they can be billed per GB.
3. Still be able to share files that are on the local network using local DHCP if possible.

So to an existing network that has files i want to add internet access capability. but users will have to log on so that their usage can be monitored. I have been searching around but maybe the search terms are wrong for what i need accomplished. i don't mind upgrading the ubuntu version to the server edition so long as i can use X11 forwarding atleast so that i can do remote monitoring. VNC is too slow, and using nautilus forwarded via X11 to my desktop sorts out most of my needs. The network provide has suggested maybe using pppoe but i am thinking if there was a welcome page based authentication system then it'd be more easy to monitor?

View 3 Replies View Related

Fedora Networking :: Configure ADSL Using Use Fc10 - Ethernet Cable <Asus Am608 ADSL Modem>

Aug 6, 2009

I want to configure my ADSL but I don't know what should I do. Can you explain me How can I configure it?(I use fc10, ethernet cable <Asus Am608 ADSL modem)

View 9 Replies View Related

Ubuntu Networking :: VPN Connection Between Two LANs

Feb 18, 2010

Have you ever created a VPN connection between two LANs which are geographically far away? For example LAN1 is 192.168.1.0 and LAN2 is 10.0.0.0. If I am in LAN1 I would like to be able to ping 10.0.0.1 and get packets back.

I am trying to do it with OpenVPN. I can connect two computers from both LANs using their virtual IP but I can't do that with their private IP. I think the solution must be in creating a bridge or using the "push" command of OpenVPN, unfortunately I haven't found clear information within the internet.

View 2 Replies View Related

Networking :: Setting Up Two Different LANs Using Three Routers?

Jun 14, 2010

So I have 3 home routers, 1 belkin and 2 netgear. I have my ISP internet connection coming into my belkin, which I then have the 2 netgear routers (from their WAN) plugged into Belkins LAN ports. Now the Ubuntu computers I have on Netgear LAN 1 and Netgear LAN2 can get to Belkin just fine (at 192.168.1.1), but I am unable to access a computer on LAN1 from a computer on LAN2 and vice-versa. My Belkin is 192.168.1.1, my Netgear1 WAN is 192.168.1.100 and Netgear2 WAN is 192.168.1.200. I have the netgears both assigning DHCP IP's from range of 192.168.0.100 to 192.168.0.150 on their LAN ports.

Now, I have set Netgear LAN1 port 80 NAT'd to go to one of my computers on it. I try to access 192.168.1.100:80 from a computer on Netgear LAN2 network and it say host unreachable.What am I doing wrong?

View 1 Replies View Related

Networking :: OpenVPN - Different Subnets For Physical And Virtual LANs?

Jan 27, 2010

I have set up OpenVPN server using a bridged configuration. My networking "powers" aren't that advanced, so I did this by following the openvpn tutorial for bridged servers. I have tested this with several clients connecting to my server from different locations and it works very nicely (including broadcasts).

My server's LAN IP address is 192.168.2.4, and my LAN's mask is 24. Clients connecting to my server get assigned IP address that also fall within that subnet (i.e., the 192.168.2.x pool contains both physical machines in my home and "virtual" hosts). This is what the OpenVPN walkthrough specifies:

[Code]...

I was wondering if it would be possible for the VPN to fall within a different subnet (such as 10.0.1.x). I would also like to do that without adding another physical NIC to my server, or changing my physical IP address. I would imagine this is possible, since that's how hamachi does it.

View 1 Replies View Related

Networking :: Using Iptables To Route/forward To Identical LANs?

Jul 18, 2011

The goal is to make connection calls (ssh, ping, ...) possible from one LAN (LAN-1) to a number of (at the moment two) separate smaller LANs.These smaller LANs (LAN-2a, LAN-2b, ...) have exact same specifications (same IP range, same number of nodes, ...)!The idea is to use a Fedora box (release 14 with 2.6.35.6-45.fc14.i686) and implement an appropriate iptables routing/forwarding.The Fedora box has three network interfaces:

- eth0 (aaa.bbb.ccc.m) on LAN-1 (aaa.bbb.ccc.0/24)
- eth1 (ddd.eee.fff.n) on LAN-2a (ddd.eee.fff.0/27)
- eth2 (ddd.eee.fff.p) on LAN-2b (ddd.eee.fff.0/27)

[code]....

View 10 Replies View Related

Ubuntu Networking :: Using Endian Firewall In Order To Connect Two LANs

Feb 23, 2010

I am using Endian firewall in order to connect two LANs but I am getting many problems and I don't know how to solve them since there is no much information about this software on the internet. Do yuo know good webpage about this powerful program?

View 5 Replies View Related

Ubuntu Networking :: Share Files Across Separate LANS Using 2 Routers

Dec 22, 2010

I have 2 routers, each are assigning IP with DHCP on. One router is plugged into cable modem second router is downstairs plugged into first router. Wire runs in WAN of second router. Each router has its own IP subset. First router assigns IP's to 192.168.1.xxx second router IP's to 10.0.0.xxx

I know I can use the second router as an AP with DHCP OFF. BIG BUT though is my wifi verizon phone got no IP assigned when running like that and wirelessly connecting to the second router. Laptops were just fine. SO, I reconfigured second router with its own subset IP being handed out. Now verizon phone is perfect.

How can I share files between connected PC's using it this way?

View 9 Replies View Related

Networking :: Configuring Multiple Separate LANs In Same Physical Network

Jun 27, 2010

For some simulation, I am trying to configure a setup of 3 ubuntu desktops (one of them with multiple network cards) to behave in the following way:

Each one of them should be a separate network not seeing the others (including multicast addresses) They need to have internet access through the machine with multiple network cards. So from the point of view of each machine they define a LAN in which it is the only device and have internet access through the gateway machine.

What do I need to do to configure these machines for the above setup?

View 6 Replies View Related

Networking :: Routes Not Persistent ?

Sep 1, 2010

I have a ubuntu 10.04.1 install with openvpn, so I have some routes in my /etc/networking/interface file. But for what ever reason when it boots the routes don't come up and I have to restart the networking before they come up. Once I do that all is well.

View 4 Replies View Related

Ubuntu Networking :: Routes Are Not Persistent

Sep 1, 2010

I have a ubuntu 10.04.1 install with openvpn, so I have some routes in my /etc/networking/interface file. But for what ever reason when it boots the routes don't come up and I have to restart the networking before they come up. Once I do that all is well. Any idea's why it's doing that?

View 1 Replies View Related

Networking :: Route 2 Subnets Between 2 Routes?

Oct 28, 2010

I have some CISCO,Linux related problem with 2 Class C subnets:

192.168.64.0 -> PC5
192.168.65.0 -> PC6

Here's a picture of my situation: [URL]

HQ has to have 2 STATIC routes in order those 2 "PCs" mentioned above to have end to end connectivity with NETWORK A and NETWORK B. Now I try with

route0 -> network: 0.0.0.0, mask: 0.0.0.0, nexthop: Serial 0/0/0
route1 -> network: 0.0.0.0, mask: 0.0.0.0, nexthop: Serial 0/0/1

And it seems to work but I don't think it's proper! I feel it's kinda wrong ... but all my other attempts to set another couple of static routes ends in "Request timed out" and thus connection lost.

View 1 Replies View Related

Networking :: Adding Persistent Routes In RHEL5?

May 13, 2011

At work I have been given the "opportunity" to provide admin support on a bunch of RHEL3, 4, and 5 servers. My latest problem is, as the subject hints at, adding persistent (or permanent) routes on a RHEL5 server. I've successfully done this with a couple of RHEL4 servers by adding the relevant information to the /etc/sysconfig/network-scripts/route-eth0 file like this:

GATEWAY0=xx.56.200.129
NETMASK0=255.255.255.128
ADDRESS0=xx.56.200.250

On the RHEL5 servers I do not see a route-ethX file. Do I just add the file and the route info? Or has this functionality been moved to another location?

View 2 Replies View Related

Networking :: Multiple Routes Based On Source IP?

Jan 29, 2010

I have 2 NICs in one box, both connected to two different routers.Is there a way to make NIC1 handle lets say 204.x.x.x and NIC2 handle the restncoming requests though.Basically, I have apache running, and I things to go through a specific NIC based on source.

View 1 Replies View Related

Networking :: What Routes To Add In Order To Make VPN Work

Feb 5, 2010

i installed the free PacketIX vpn client on my ubuntu 9.04. it created a virtual network adapter, i was able to configure and connect to the VPN service but when i add a default route to the routing table so that all internet traffic goes through the VPN, my internet connection stops working until i remove the line i added.
here's my routing table before :

Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.222.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 vpn_vpn
0.0.0.0 192.168.222.2 0.0.0.0 UG 0 0 0 eth0
and after i add the route:
[Code].....

View 2 Replies View Related

Networking :: Why Accept Routes In Bgp / When Have Default Gateway From ISP?

Apr 7, 2010

I am realtively new to BGP. I use BGP in my network to advertise my /20 subnet. What i would like to know is what is the point of accepting routes from your neighbouring AS(ISP)?My ISP has given me a default gateway, and no matter what I want to reach on the internet I have to go through that default gateway, so why populate the routing table with soo many routes?also, as i understand it, there are 3 kinds of routes that you can accept, those are full routes, directly connected routes and default routes. What is the diffrence between them and again how do they affect routing since my network only has the one default gateway?

View 2 Replies View Related

Fedora Networking :: Network-Manager PPTP Add Routes

Jan 13, 2010

I currently managed it to get a pptp-connect to my home network. now I have another little problem. NetworkManager always routes the whole network traffic over my home network if i am connected to the home network.If i set the "Use this connection only for resources on its network" I have do manually say:

Code:
route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0
After that only the correct traffic runs over the vpn. Now my question is it possible to setup the route via the networkmanager gui?

View 3 Replies View Related

Fedora Networking :: Adding Another Network To Routes And Shorewall?

May 10, 2011

First I will give some background. We have a currently working network that the Previous network Admin assigned an internal IP scheme of 200.1.1.0/24. I have no idea why he would have done such a thing, but it is my job to fix it (and keep our systems up and running). We have a Fedora 10 box on the 200 network that is acting as a router and a firewall (shorewall to be exact).

I added another NIC card (thank you again to all the great people on this forum for helping me get that working) and it is eth2. Assigned it a 10.100.1.A/24 (This is just a variable for the real IP). The other end of the cable that I plugged into that NIC connects to a Cisco Layer 3 switch. I assigned the port that connects to the other end of the cable the IP address of 10.100.1.B/24

Ok, I added the static route of ˜ip route add 10.100.1.0/24 via 10.100.1.A dev eth2' I added loc2 (which is my eth2 adapter) to the /etc/shorewall/zones file. I set eth2 on loc2 in the /etc/shorewall/interfaces file. loc2 eth2 detect I set the lines in the /etc/shorewall/policies file loc loc2 ACCEPT info loc2 loc ACCEPT info I can ping the cisco switch from the linux server itself. From a PC on the original network I can ping the new NIC card in the linux server, but cannot ping the cisco switch, so I figure it has to be either the route or shorewall.

View 13 Replies View Related

Ubuntu Networking :: OpenVPN On 10.04 Server - Routes Fail

Jul 18, 2010

New ubuntu desktop user here. I've been working with Ubuntu servers for over 3 yrs, using Windows as clients. I have OpenVPN running on an ubuntu 10.04 server, and it has worked well with Windows OpenVPN clients connecting. I took those same settings and applied them to this new install of Ubuntu 10.04 Desktop, and now openvpn seems to be failing when we get to the routes (I wrestled with the network-manager "secrets" issue for hours, but that works now).

I performed the following:
sudo openvpn --config fogbank-ny1.ovpn
--all is well, we're connecting/yay then *screech* FAIL--

Code:
Sun Jul 18 07:17:14 2010 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.0 255.255.255.0,redirect-gateway def1,dhcp-option DNS 10.8.0.1,route 10.8.0.0 255.255.255.0,topology net30,ping 30,ping-restart 600,ifconfig 10.8.0.10 10.8.0.9'
Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: --ifconfig/up options modified
Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: route options modified
Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Jul 18 07:17:14 2010 ROUTE default_gateway=192.168.10.1
Sun Jul 18 07:17:14 2010 TUN/TAP device tun0 opened
Sun Jul 18 07:17:14 2010 TUN/TAP TX queue length set to 100
Sun Jul 18 07:17:14 2010 /sbin/ifconfig tun0 10.8.0.10 pointopoint 10.8.0.9 mtu 1500
Sun Jul 18 07:17:14 2010 /sbin/route add -net <mypublicip> netmask 255.255.255.255 gw 192.168.10.1
Sun Jul 18 07:17:14 2010 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.8.0.9
Sun Jul 18 07:17:14 2010 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.8.0.9
Sun Jul 18 07:17:14 2010 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.9
Sun Jul 18 07:17:14 2010 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.9
SIOCADDRT: File exists
Sun Jul 18 07:17:14 2010 ERROR: Linux route add command failed: external program exited with error status: 7
Sun Jul 18 07:17:14 2010 Initialization Sequence Completed

I am using the suggested openvpn routes. If I connect from Windows (actually the .ovpn file is taken directly from the working windows machine).. all is well, routes work fine all traffic is routed thru the VPN -- same way it's worked for over a yar. I assume that this is what is causing networkmanager to fail as well. those logs indicate that it has connected to the vpn, but is probably stopping when it gets to routes.

View 1 Replies View Related

Ubuntu Networking :: Default Routes For Specific Interfaces?

Oct 15, 2010

I've got a 10.04 machine with two ethernet interfaces. I have two separate outside internet connections. This machine is connected to both interfaces. But it DOES NOT route between them. It's just a host on both subnets. Again, no routing is to go through this host. I'd like to force traffic originating on each ethernet port out to that network's internet connection.

Here's the desired setup:
eth0 192.168.12.37/24 gw 192.168.12.1
eth1 192.168.1.37/24 gw 192.168.1.1

I'd like traffic on the 192.168.1.37 address to go out through the 192.168.1.1 gateway. I have a program bound to that address and need it's traffic to go out ONLY through the 192.168.1.1 gateway. Any other traffic on the machine should go out the 192.168.12.1 gateway.

The logic is: source IP is 192.168.1.37, dest IP is any then go out only through 192.168.1.1 source IP is 192.168.12.37, dest IP is any then go out through 192.168.12.1 first or 192.168.1.1 next. The point is source on the .1.37 address must always go out the .1.1 gateway and NEVER through .12.1. Whereas traffic on the .12.37 address should try going out the .12.1 gateway first but can go out the .1.1 gateway if the .12.1 connection is down. I could live with this failover option. I could accept that traffic on the .12.37 address was likewise limited to its own gateway.

View 3 Replies View Related

Ubuntu Networking :: 10.4 - NIC Bonding - Make Routes Behave Themselves?

Dec 3, 2010

I just set up NIC bonding in Ubuntu 10.4, following these instructions, and I've got it working except for one problem: Every time I up or down a network device, or every time the system reboots, my routes go all to hell with eth0 and eth1 entries next to my bond0 entries. When the eth0 and eth1 entries show up, my connection is hosed and I have to go in via the maintenance IP to kill each route one at a time, leaving only bond0. Here's how I want my routes to look at all times:

Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.87.9.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0
0.0.0.0 10.87.9.1 0.0.0.0 UG 100 0 0 bond0
Here's my /etc/network/interfaces:

[Code]...

View 3 Replies View Related

Ubuntu Networking :: Wrong Metric In Routes For 4 Interfaces

Apr 27, 2011

On a server with 4 network interfaces, sometimes not all 4 are plugged in. All 4 interfaces have the same IP address. Sometimes the machine cannot access the local LAN, but can access the internet via a router on the local LAN, after a reboot. What I find is that the routing table looks like this:

Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth3
0.0.0.0 172.30.0.2 0.0.0.0 UG 1 0 0 eth0
0.0.0.0 172.30.0.2 0.0.0.0 UG 2 0 0 eth1
0.0.0.0 172.30.0.2 0.0.0.0 UG 3 0 0 eth2
0.0.0.0 172.30.0.2 0.0.0.0 UG 4 0 0 eth3

On the console I cannot reach any local host, but I can reach internet hosts. Pinging the gateway router 172.30.0.2 gets no answer. When I manually change it to this:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.30.0.0 0.0.0.0 255.255.0.0 U 1 0 0 eth0
172.30.0.0 0.0.0.0 255.255.0.0 U 2 0 0 eth1
172.30.0.0 0.0.0.0 255.255.0.0 U 3 0 0 eth2
172.30.0.0 0.0.0.0 255.255.0.0 U 4 0 0 eth3
0.0.0.0 172.30.0.2 0.0.0.0 UG 1 0 0 eth0
0.0.0.0 172.30.0.2 0.0.0.0 UG 2 0 0 eth1
0.0.0.0 172.30.0.2 0.0.0.0 UG 3 0 0 eth2
0.0.0.0 172.30.0.2 0.0.0.0 UG 4 0 0 eth3

Then all is well (can ping local hosts including the gateway router). I do have metric specified in the /etc/network/interfaces file like this:
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.30.16.8
netmask 255.255.0.0
network 172.30.0.0
broadcast 172.30.255.255
metric 1

auto eth1
iface eth1 inet static
address 172.30.16.8
netmask 255.255.0.0
network 172.30.0.0
broadcast 172.30.255.255
metric 2

auto eth2
iface eth2 inet static
address 172.30.16.8
netmask 255.255.0.0
network 172.30.0.0
broadcast 172.30.255.255
metric 3

auto eth3
iface eth3 inet static
address 172.30.16.8
netmask 255.255.0.0
network 172.30.0.0
broadcast 172.30.255.255
metric 4

Apparently that metric setting applies only to the gateway route, not the LAN route. Is there a way to specify the LAN route metric, too?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved