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

Re: ifconfig/ ifupdown/ ip -



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jul 09, 2018 at 11:52:36AM +1000, Zenaan Harkness wrote:
> So I change between two internet connections from time to time.
> 
> I use /etc/network/interfaces ("/e/n/i")
> 
> When I modify /e/n/i , I then run a little "reset" script, like so:
> 
> dev=eth0
> ifdown $dev
> ifconfig $dev down
> ifup $dev

Perhaps, just perhaps you should be doing "ifdown $dev" *before*
editing your e/n/i: ifdown may get confused finding parameters
there corresponding to the future, not to the current connections.

I use ifupdown myself and have hit few problems so far by doing
changes after doing the ifdown (and before the ifup, of course :)

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAltC++4ACgkQBcgs9XrR2kaEQgCeNMEkRIt/9usnzxGSYkbYPWwc
pEAAni3U19ZV730SXNwDFyFzPFjdGHd6
=VTdy
-----END PGP SIGNATURE-----


Reply to: