You are not logged in.

#1 2013-04-17 19:02:30

Pranavg1890
Member
From: Nagpur,India
Registered: 2012-09-07
Posts: 111

netctl interface down problem in pppoe

Hi friends I am using netctl for my broadband connection which runs by pppoe method.

It successfully starts my pppoe connection the first time I start it whose interface is eth0.

but when stopping the connection it gives me this error:



sudo systemctl status netctl@bsnl.service
netctl@bsnl.service - Networking for netctl profile bsnl
          Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
          Active: failed (Result: exit-code) since Thu 2013-04-18 00:22:15 IST; 2min 24s ago
            Docs: man:netctl.profile(5)
         Process: 5876 ExecStop=/usr/lib/network/network stop %I (code=exited, status=1/FAILURE)
         Process: 4104 ExecStart=/usr/lib/network/network start %I (code=exited, status=0/SUCCESS)

Apr 18 00:22:15 pranavarch systemd[1]: Stopping Networking for netctl profile bsnl...
Apr 18 00:22:15 pranavarch pppd[4120]: Terminating on signal 15
Apr 18 00:22:15 pranavarch pppd[4120]: Connect time 67.8 minutes.
Apr 18 00:22:15 pranavarch pppd[4120]: Sent 880181 bytes, received 5529218 bytes.
Apr 18 00:22:15 pranavarch network[5876]: The interface of network profile 'bsnl' did not go down
Apr 18 00:22:15 pranavarch systemd[1]: netctl@bsnl.service: control process exited, code=exited status=1
Apr 18 00:22:15 pranavarch systemd[1]: Stopped Networking for netctl profile bsnl.
Apr 18 00:22:15 pranavarch systemd[1]: Unit netctl@bsnl.service entered failed state
Apr 18 00:22:15 pranavarch pppd[4120]: Connection terminated.
Apr 18 00:22:15 pranavarch pppd[4120]: Exit.

Then when i start it again , it give me following error:

 sudo systemctl status netctl@bsnl.service
netctl@bsnl.service - Networking for netctl profile bsnl
          Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
          Active: failed (Result: exit-code) since Thu 2013-04-18 00:26:20 IST; 7s ago
            Docs: man:netctl.profile(5)
         Process: 5876 ExecStop=/usr/lib/network/network stop %I (code=exited, status=1/FAILURE)
         Process: 5998 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)

Apr 18 00:26:20 pranavarch network[5998]: link: extra operand ‘down’
Apr 18 00:26:20 pranavarch network[5998]: Try 'link --help' for more information.
Apr 18 00:26:20 pranavarch network[5998]: Starting network profile 'bsnl'...
Apr 18 00:26:20 pranavarch network[5998]: The interface of network profile 'bsnl' is already up
Apr 18 00:26:20 pranavarch systemd[1]: netctl@bsnl.service: main process exited, code=exited, status=1/FAILURE
Apr 18 00:26:20 pranavarch systemd[1]: Failed to start Networking for netctl profile bsnl.
Apr 18 00:26:20 pranavarch systemd[1]: Unit netctl@bsnl.service entered failed state

then I have to run the following command to get the interface eth0 down:
sudo ip link set eth0 down

So, how to avoid this error and force netctl to successfully stop my connection so that I dont have to run the above command again and again.Thanks.


Using Openbox + Tint2 + Idesk

Offline

#2 2013-04-17 19:06:36

Pranavg1890
Member
From: Nagpur,India
Registered: 2012-09-07
Posts: 111

Re: netctl interface down problem in pppoe

Hi friends , I also tried adding the following option in my profile:

ExecDownPre=/sbin/ip link set eth0 down

but it gives me this error:

Apr 18 00:26:20 pranavarch network[5998]: link: extra operand ‘down’
Apr 18 00:26:20 pranavarch network[5998]: Try 'link --help' for more information.

Please help me.


Using Openbox + Tint2 + Idesk

Offline

#3 2013-04-18 22:00:19

jouke
Member
Registered: 2009-10-14
Posts: 63

Re: netctl interface down problem in pppoe

You are missing the word 'dev' in the ExecDownPre line:

ExecDownPre=/sbin/ip link set dev eth0 down

Thanks for spotting this bug, I'll fix it in the next release (so that the ExecDownPre line is then no longer needed).

Offline

#4 2013-04-19 07:39:24

Pranavg1890
Member
From: Nagpur,India
Registered: 2012-09-07
Posts: 111

Re: netctl interface down problem in pppoe

Hi @Jouke, after adding the word dev, it is not giving me any error but still the interface does not go down on stopping the connection.I have to manually turn it off by "ip link set eth0 down". By, the way, are you one of developer of netctl?


Using Openbox + Tint2 + Idesk

Offline

Board footer

Powered by FluxBB