Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Adding more than one static IP
Date: Tue, 25 Jan 2011 03:36:50
Message-Id: 20110125033542.GA17246@waltdnes.org
In Reply to: [gentoo-user] Adding more than one static IP by Amar Cosic
1 On Mon, Jan 24, 2011 at 04:15:14PM +0100, Amar Cosic wrote
2 > Hello list
3 >
4 > My mind is just "locked" at the moment and I am trying to figure out what am
5 > I doing wrong here. I have 4 static IP's on server machine
6
7 I have one nic on my desktop. It sits behind an ADSL router-modem
8 which has address 192.168.123.254.
9
10 * My little LAN is 192.168.123.248/29. I want that to always go via the
11 router/modem, so I give that path metric 0
12
13 * I have an HDHomerun TV tuner that pops up in the 169.254.0.0/16 block.
14 That path also gets gets metric 0
15
16 * Default (i.e. to the internet) is metric 2 via the router
17
18 * Because the default is metric 2, dialup (temporary ppp0) can take over
19 internet access, without interfering with LAN traffic or my TV tuner.
20
21 Here's my /etc/conf.d.net
22
23 config_eth0=(
24 "192.168.123.249 broadcast 192.168.123.255 netmask 255.255.255.248 mtu 1454"
25 "169.254.1.3 broadcast 169.254.255.255 netmask 255.255.0.0")
26 routes_eth0=(
27 "default via 192.168.123.254 metric 2"
28 "192.168.123.248/29 via 192.168.123.254 metric 0"
29 "169.254.0.0/16 via 169.254.1.3 metric 0"
30 )
31
32 --
33 Walter Dnes <waltdnes@××××××××.org>