[SFS] Ubuntu server with 2 IP addresses
Chris Fedde
chris@fedde.us
Wed, 11 Oct 2017 14:29:51 -0600
--001a113d7fc22b9f16055b4b4919
Content-Type: text/plain; charset="UTF-8"
At a guess? Turn off NetworkManager. It gets in the way of static configs.
On Wed, Oct 11, 2017 at 2:24 PM, David L. Willson <DLWillson@thegeek.nu>
wrote:
> 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
> >
> _______________________________________________
> SFS mailing list
> SFS@thegeek.nu
> http://mailman.thegeek.nu/mailman/listinfo/sfs
>
--001a113d7fc22b9f16055b4b4919
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">At a guess? Turn off NetworkManager.=C2=A0 It gets in the =
way of static configs.</div><div class=3D"gmail_extra"><br><div class=3D"gm=
ail_quote">On Wed, Oct 11, 2017 at 2:24 PM, David L. Willson <span dir=3D"l=
tr"><<a href=3D"mailto:DLWillson@thegeek.nu" target=3D"_blank">DLWillson=
@thegeek.nu</a>></span> wrote:<br><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does it=
persist through a reboot?<br>
<br>
Does the undesired address come off, and stay off (for a long time), if you=
'ip address delete (it)'?<br>
<br>
It seems like this might take a few rounds of Q & T & A ... Maybe y=
ou should come hang out with us in MatterMost: <a href=3D"https://mattermos=
t.sofree.us/signup_user_complete/?id=3Dbrmczfxbrjr15ggn7rwtpwgthy" rel=3D"n=
oreferrer" target=3D"_blank">https://mattermost.sofree.us/<wbr>signup_user_=
complete/?id=3D<wbr>brmczfxbrjr15ggn7rwtpwgthy</a><br>
<br>
--<br>
David L. Willson<br>
Teacher, Engineer, Evangelist<br>
COA LFCS CCAH RHCE CLP<br>
Mobile 720-333-LANS(5267)<br>
<a href=3D"http://sofree.us" rel=3D"noreferrer" target=3D"_blank">http://so=
free.us</a><br>
<br>
This is a good time for a r3VOLution.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
----- Original Message -----<br>
> Hopefully this message will get to everybody, I think I sent it to<br>
> the<br>
> right address . . . if not would somebody forward it to the brain<br>
> trust for me?<br>
><br>
> Thanks in advance for any advice and or sarcasm offered ;-)<br>
><br>
> I have an issue with an Ubuntu server that I just upgraded from 14.04<=
br>
> to 16.04 using the do-release-upgrade command. I know it is not<br>
> ideal,<br>
> but this was preferred over a clean install. Everything seemed to go<b=
r>
> well, but now eth0 has 2 IP addresses, 1 dynamic (I don't need or<=
br>
> want) and 1 static, which is the actual one that I want. They are<br>
> both<br>
> working fine and I can SSH to the server on either address. How can I<=
br>
> turn off the 1 dynamic address?<br>
><br>
> Here is my interfaces file:<br>
><br>
> # The loopback network interface<br>
> auto lo<br>
> iface lo inet loopback<br>
><br>
> # The primary network interface<br>
> auto eth0<br>
> iface eth0 inet static<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0address 10.0.1.211<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0netmask 255.255.255.0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0network 10.0.1.0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0broadcast 10.0.1.255<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0gateway 10.0.1.254<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dns-nameservers 10.0.1.2 10.0.1.22<br=
>
><br>
> Here is the result of "ip a", notice it shows both addresses=
, but<br>
> "ifconfig" that follows it only shows the dynamic one:<br>
><br>
> srv:~$ ip a<br>
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKN=
OWN<br>
> group default<br>
>=C2=A0 =C2=A0 =C2=A0link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:=
00<br>
>=C2=A0 =C2=A0 =C2=A0inet <a href=3D"http://127.0.0.1/8" rel=3D"noreferr=
er" target=3D"_blank">127.0.0.1/8</a> scope host lo<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 valid_lft forever preferred_lft forever<br>
>=C2=A0 =C2=A0 =C2=A0inet6 ::1/128 scope host<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 valid_lft forever preferred_lft forever<br>
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_<wbr>UP> mtu 1500 qdisc m=
q state UP<br>
> group default qlen 1000<br>
>=C2=A0 =C2=A0 =C2=A0link/ether 00:50:56:85:7a:60 brd ff:ff:ff:ff:ff:ff<=
br>
>=C2=A0 =C2=A0 =C2=A0inet <a href=3D"http://10.0.1.64/24" rel=3D"norefer=
rer" target=3D"_blank">10.0.1.64/24</a> brd 10.0.1.255 scope global dynamic=
eth0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 valid_lft 258240sec preferred_lft 258240sec=
<br>
>=C2=A0 =C2=A0 =C2=A0inet <a href=3D"http://10.0.1.211/24" rel=3D"norefe=
rrer" target=3D"_blank">10.0.1.211/24</a> brd 10.0.1.255 scope global secon=
dary eth0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 valid_lft forever preferred_lft forever<br>
>=C2=A0 =C2=A0 =C2=A0inet6 fe80::250:56ff:fe85:7a60/64 scope link<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 valid_lft forever preferred_lft forever<br>
><br>
><br>
> srv:~$ ifconfig<br>
> eth0=C2=A0 =C2=A0 =C2=A0 Link encap:Ethernet=C2=A0 HWaddr 00:50:56:85:=
7a:60<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inet addr:10.0.1.64=C2=A0 Bcas=
t:10.0.1.255=C2=A0 Mask:255.255.255.0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inet6 addr: fe80::250:56ff:fe8=
5:7a60/64 Scope:Link<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0UP BROADCAST RUNNING MULTICAST=
=C2=A0 MTU:1500=C2=A0 Metric:1<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0RX packets:4454 errors:0 dropp=
ed:0 overruns:0 frame:0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0TX packets:348 errors:0 droppe=
d:0 overruns:0 carrier:0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0collisions:0 txqueuelen:1000<b=
r>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0RX bytes:415570 (415.5 KB)=C2=
=A0 TX bytes:63700 (63.7 KB)<br>
><br>
> lo=C2=A0 =C2=A0 =C2=A0 =C2=A0 Link encap:Local Loopback<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inet addr:127.0.0.1=C2=A0 Mask=
:255.0.0.0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inet6 addr: ::1/128 Scope:Host=
<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0UP LOOPBACK RUNNING=C2=A0 MTU:=
65536=C2=A0 Metric:1<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0RX packets:333 errors:0 droppe=
d:0 overruns:0 frame:0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0TX packets:333 errors:0 droppe=
d:0 overruns:0 carrier:0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0collisions:0 txqueuelen:0<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0RX bytes:55712 (55.7 KB)=C2=A0=
TX bytes:55712 (55.7 KB)<br>
> ______________________________<wbr>_________________<br>
> SFS mailing list<br>
> <a href=3D"mailto:SFS@thegeek.nu">SFS@thegeek.nu</a><br>
> <a href=3D"http://mailman.thegeek.nu/mailman/listinfo/sfs" rel=3D"nore=
ferrer" target=3D"_blank">http://mailman.thegeek.nu/<wbr>mailman/listinfo/s=
fs</a><br>
><br>
______________________________<wbr>_________________<br>
SFS mailing list<br>
<a href=3D"mailto:SFS@thegeek.nu">SFS@thegeek.nu</a><br>
<a href=3D"http://mailman.thegeek.nu/mailman/listinfo/sfs" rel=3D"noreferre=
r" target=3D"_blank">http://mailman.thegeek.nu/<wbr>mailman/listinfo/sfs</a=
><br>
</div></div></blockquote></div><br></div>
--001a113d7fc22b9f16055b4b4919--