Re: routing help
Sorry to be vague, but there was a command I remember once when I had this problem before.
Seems like I had to do a route add in /network/interfaces. Seems like there is some parameter
to an interface that allows you to execute a command after the interface is brought up, and I
had to do a route add . . . . to get it to work.
However, I'm doing a similar thing, on my server and the only difference is that my netmask is
not 255.255.255.255, which I think is incorrect on yours. Maybe it is the fact that your
netmask is not correct? Following are the first two entries in my /etc/network/interfaces, and
it works just fine. If I read your output correctly, your netmask should be a .224 instead of
the .0 I use (since you only have two IP's).
iface eth0 inet static
iface eth0:0 inet static
Of course, I could be 100% wrong, in which case someone here will correct me.
> I have an issue with routing that I just can't figure out.
> What I have at the moment is a box set up with an IP and route as
> follows (some of the details have
> route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> 22.214.171.124 0.0.0.0 255.255.255.255 UH 0 0 0
> 126.96.36.199 0.0.0.0 255.255.255.252 U 0 0 0
> 188.8.131.52 0.0.0.0 255.255.255.224 U 0 0 0
> 0.0.0.0 184.108.40.206 0.0.0.0 UG 0 0 0
> eth0 Link encap:Ethernet HWaddr 00:05:1C:0B:48:A8
> inet addr:220.127.116.11 Bcast:18.104.22.168
> As can be seen from above the default route is set up to go to a
> gateway on a static route.
> What I want to do is add an ip alias to eth0 with an ip address of
> 22.214.171.124 and have it route out through the same gateway.
> If I simply do "ifconfig eth0:1 126.96.36.199 netmask 255.255.255.224
> broadcast 188.8.131.52" I can ping the IP address from the machine
> that is on the same switch (e.g. from 184.108.40.206) but I can not ping
> or trace to the ip aliased interface. I have searched around on google
> but can't seem to find what I am doing wrong!
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com
Media Ethics is an oxymoron, much like Jumbo Shrimp and Microsoft Works. Not to mention NT