Re: Default IP address for multihomed hosts changed in F24

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

 



Tom H writes:

On Sun, Jun 26, 2016 at 8:51 PM, Sam Varshavchik <mrsam@xxxxxxxxxxxxxxx> wrote:
>
> For the longest time I had /etc/sysconfig/network-scripts/eno2 specify:
>
> TYPE=Ethernet
> BOOTPROTO=none
> DEFROUTE=yes
> NAME=wan0
> UUID=71e6ac4b-c693-4c20-aa0d-e1a63b7373fe
> ONBOOT=yes
> IPADDR1=216.254.115.102
> PREFIX1=24
> IPADDR2=216.27.136.223
> PREFIX2=24
> HWADDR=0C:C4:7A:32:C1:83
> IPADDR=216.254.115.190
> GATEWAY=216.254.115.1
> PREFIX=24
>
> This host has three IP addresses, and up until now the default IP address
> for outgoing IP traffic was always 216.254.115.190, specified by IPADDR.
>
> It appears that, right now, all of my outbound traffic now appears to come
> from one of the other IP addresses, 216.254.115.102.
>
> This is true even if the outgoing socket explicitly binds to
> 216.254.115.190:

What's the output of "ip r"?


# ip r
default via 216.254.115.1 dev eno2  proto static  metric 100
192.168.0.0/24 dev eno1 proto kernel scope link src 192.168.0.1 metric 100 216.27.136.0/24 dev eno2 proto kernel scope link src 216.27.136.223 metric 100 216.254.115.0/24 dev eno2 proto kernel scope link src 216.254.115.102 metric 100

If the default route's not from "190", you should be able to force it
with "SRCADDRC=".

The default route appears to be set by add_default_route() in network- functions.

The "# Set a default route." blurb in ifup-eth, that you are referring to, is not being used for some reason I have not been able to determine. Putting "SRCADDR=216.254.115.190" made no difference. Neither is using IPADDR0 and PREFIX0 instead of IPADDR and PREFIX; nor ordering IPADDR/PREFIX before IPADDR[12] and PREFIX[12].

The path of least resistance for me appears to be is to swap the .102 IP address on this machine with another IP address, leave only one assigned IP address in this /24. With the default route to this /24, the kernel will have no choice but to use the other IP address.

Attachment: pgpBAPMKhdP7g.pgp
Description: PGP signature

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux