[SFS] Ubuntu server with 2 IP addresses
David L. Willson
DLWillson@TheGeek.NU
Wed, 11 Oct 2017 14:24:22 -0600 (MDT)
Does it persist through a reboot?
Does the undesired address come off, and stay off (for a long time), if you 'ip address delete (it)'?
It seems like this might take a few rounds of Q & T & A ... Maybe you should come hang out with us in MatterMost: https://mattermost.sofree.us/signup_user_complete/?id=brmczfxbrjr15ggn7rwtpwgthy
--
David L. Willson
Teacher, Engineer, Evangelist
COA LFCS CCAH RHCE CLP
Mobile 720-333-LANS(5267)
http://sofree.us
This is a good time for a r3VOLution.
----- Original Message -----
> Hopefully this message will get to everybody, I think I sent it to
> the
> right address . . . if not would somebody forward it to the brain
> trust for me?
>
> Thanks in advance for any advice and or sarcasm offered ;-)
>
> I have an issue with an Ubuntu server that I just upgraded from 14.04
> to 16.04 using the do-release-upgrade command. I know it is not
> ideal,
> but this was preferred over a clean install. Everything seemed to go
> well, but now eth0 has 2 IP addresses, 1 dynamic (I don't need or
> want) and 1 static, which is the actual one that I want. They are
> both
> working fine and I can SSH to the server on either address. How can I
> turn off the 1 dynamic address?
>
> Here is my interfaces file:
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> auto eth0
> iface eth0 inet static
> address 10.0.1.211
> netmask 255.255.255.0
> network 10.0.1.0
> broadcast 10.0.1.255
> gateway 10.0.1.254
> dns-nameservers 10.0.1.2 10.0.1.22
>
> Here is the result of "ip a", notice it shows both addresses, but
> "ifconfig" that follows it only shows the dynamic one:
>
> srv:~$ ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
> group default
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> valid_lft forever preferred_lft forever
> inet6 ::1/128 scope host
> valid_lft forever preferred_lft forever
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
> group default qlen 1000
> link/ether 00:50:56:85:7a:60 brd ff:ff:ff:ff:ff:ff
> inet 10.0.1.64/24 brd 10.0.1.255 scope global dynamic eth0
> valid_lft 258240sec preferred_lft 258240sec
> inet 10.0.1.211/24 brd 10.0.1.255 scope global secondary eth0
> valid_lft forever preferred_lft forever
> inet6 fe80::250:56ff:fe85:7a60/64 scope link
> valid_lft forever preferred_lft forever
>
>
> srv:~$ ifconfig
> eth0 Link encap:Ethernet HWaddr 00:50:56:85:7a:60
> inet addr:10.0.1.64 Bcast:10.0.1.255 Mask:255.255.255.0
> inet6 addr: fe80::250:56ff:fe85:7a60/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:4454 errors:0 dropped:0 overruns:0 frame:0
> TX packets:348 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:415570 (415.5 KB) TX bytes:63700 (63.7 KB)
>
> 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:65536 Metric:1
> RX packets:333 errors:0 dropped:0 overruns:0 frame:0
> TX packets:333 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:55712 (55.7 KB) TX bytes:55712 (55.7 KB)
> _______________________________________________
> SFS mailing list
> SFS@thegeek.nu
> http://mailman.thegeek.nu/mailman/listinfo/sfs
>