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

Re: IP-aliases, sporadically changing src address for outbound traffic





--On February 28, 2006 9:09:08 PM +0100 Henrik Heil <hhml@zweipol.net> wrote:


Now I'm a bit puzzled if
a) this is normal/known
b) ip route ... src ... will fix it (hard to test)

Thanks in advance,
Henrik

The way to prevent this is for aliases to be netmask 255.255.255.255 w/o a gateway.



--- 8< /etc/network/interfaces ---

auto lo eth0 eth0:0 eth0:1 eth0:2
iface lo inet loopback

iface eth0 inet static
         address xxx.yyy.zzz.6
         netmask 255.255.255.0
         gateway xxx.yyy.zzz.1

iface eth0:0 inet static
         address xxx.yyy.zzz.178
         netmask 255.255.255.0
         gateway xxx.yyy.zzz.1

iface eth0:1 inet static
         address xxx.yyy.zzz.212
         netmask 255.255.255.0
         gateway xxx.yyy.zzz.1

iface eth0:2 inet static
         address xxx.yyy.zzz.213
         netmask 255.255.255.0
         gateway xxx.yyy.zzz.1

--- >8 ---


--- 8< ifconfig ---

eth0      Link encap:Ethernet  HWaddr 00:0C:76:62:02:A0
           inet addr:xxx.yyy.zzz.6  Bcast:xxx.yyy.zzz.255
Mask:255.255.255.0
           inet6 addr: fe80::20c:76ff:fe62:2a0/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:101356798 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1623084 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:1961659835 (1.8 GiB)  TX bytes:1032623017 (984.7 MiB)

eth0:0    Link encap:Ethernet  HWaddr 00:0C:76:62:02:A0
           inet addr:xxx.yyy.zzz.178  Bcast:xxx.yyy.zzz.255
Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:1    Link encap:Ethernet  HWaddr 00:0C:76:62:02:A0
           inet addr:xxx.yyy.zzz.212  Bcast:xxx.yyy.zzz.255
Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:2    Link encap:Ethernet  HWaddr 00:0C:76:62:02:A0
           inet addr:xxx.yyy.zzz.213  Bcast:xxx.yyy.zzz.255
Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:63385 errors:0 dropped:0 overruns:0 frame:0
           TX packets:63385 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:5385623 (5.1 MiB)  TX bytes:5385623 (5.1 MiB)

--- >8 ---

--
Henrik Heil, zweipol Coy & Heil GbR
http://www.zweipol.net/


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org






--
Michael Loftis
Modwest Operations Manager
Powerful, Affordable Web Hosting



Reply to: