Re: FW: FW: Static ip addresses/aliases previously (my mistake) htb: class 10007 isn't work conserving ?!

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Bolton wrote:

eth1 & eth2 are both connected to the EN5861 router. I've done that because I couldn't work out any other way to use the static IP address that out ISP have given us.



Aha, this is a config question. You can just add as many ip addresses to


each physical card as you like.  I forget the exact syntax, but check man
pages for "ifconfig" and look for "aliases".

Right getting the hang of this now, managed to set up aliases for eth0 named
eth0:0 and eth0:1 with the correct Ip addresses but how can I route with
them? When I do something like ip route add default dev eth0:0 it complains
that it cant find eth0:0 as its not a real adapter. I've been searching on
google to no avail and have come to a bit of a full stop.




Hmm, why would you need to route to a specific IP address? Basically it goes out on eth0 or it doesn't...? What else could it do?

Perhaps you want to mangle things in IPTables or some such first?  (eg NAT?)

Ed W
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux