Re: ifdown/ifup and friends

2018-04-24 Thread Lior Okman
Hi, On my current host I have the following: $ ip addr show enp4s0 2: enp4s0: mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 70:85:c2:66:5a:96 brd ff:ff:ff:ff:ff:ff Running the "set link down" command yields this: $ sudo ip link set down enp4s0 $ ip addr show enp4s0 2: enp

Re: ifdown/ifup and friends

2018-04-24 Thread Oleg Goldshmidt
Tzafrir Cohen writes: >> The problem is that whatever I do in stop() (or by hand), e.g., >> >> * ifconfig eth3 down >> * ifdown --force eth3 (and --no-scripts, and whatever - on Debian) >> * ip link set eth3 down > > Why don't you stop the interface with 'ifdown'? Also: why not use ip > (and gen

Re: ifdown/ifup and friends

2018-04-24 Thread Tzafrir Cohen
Hi, Not a good answer, just some thoughts: On Tue, Apr 24, 2018 at 05:51:40PM +0300, Oleg Goldshmidt wrote: > > Hi all, > > I am trying to get my head around the problem of bringing network > interfaces up and down and checking the state. I googled extensively, > but I have not found an answer

ifdown/ifup and friends

2018-04-24 Thread Oleg Goldshmidt
Hi all, I am trying to get my head around the problem of bringing network interfaces up and down and checking the state. I googled extensively, but I have not found an answer to the conundrum, and I am hoping that someone here may shed some light. My target platform is Debian wheezy (no, I can't