You are not logged in.

#1 2013-09-13 14:56:11

geckos
Member
Registered: 2010-12-02
Posts: 20

[SOLVED]netctl rising both ethernet cards when only one is registred

I used eth0 for a long time, but now for some work sake I need eth0 free..

So I open the only profile I have on netctl, change the interface and reboot,
Here is how it is

[geckos@arch netctl]$ cat ethernet-dhcp 
Description='A basic dhcp ethernet connection'
Interface=eth1
Connection=ethernet
IP=dhcp
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=stateless

The problem is that now both interfaces are rising, here are they:

[geckos@arch netctl]$ ip route 
default via 155.1.1.2 dev eth0  metric 202 
default via 155.1.1.2 dev eth1  metric 203 
155.1.1.0/24 dev eth0  proto kernel  scope link  src 155.1.1.129  metric 202 
155.1.1.0/24 dev eth1  proto kernel  scope link  src 155.1.1.140  metric 203 
155.1.1.129 via 127.0.0.1 dev lo  metric 202 
155.1.1.140 via 127.0.0.1 dev lo  metric 203 

[geckos@arch netctl]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    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 pfifo_fast state UP qlen 1000
    link/ether f0:4d:a2:e4:f4:1b brd ff:ff:ff:ff:ff:ff
    inet 155.1.1.129/24 brd 155.1.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::f24d:a2ff:fee4:f41b/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:50:b6:0d:3a:15 brd ff:ff:ff:ff:ff:ff
    inet 155.1.1.140/24 brd 155.1.1.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::250:b6ff:fe0d:3a15/64 scope link 
       valid_lft forever preferred_lft forever

Here is the list of profiles enabled on netctl

[geckos@arch netctl]$ netctl list
  ethernet-dhcp

Any idea?

Regards!

Last edited by geckos (2013-09-13 16:37:40)

Offline

#2 2013-09-13 15:38:44

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: [SOLVED]netctl rising both ethernet cards when only one is registred

Do you have a dhcpcd@eth0 service enabled? Did you stop netctl on eth0 before modifying the profile or have you rebooted?

Last edited by progandy (2013-09-13 15:40:00)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2013-09-13 16:35:49

geckos
Member
Registered: 2010-12-02
Posts: 20

Re: [SOLVED]netctl rising both ethernet cards when only one is registred

Hi, I had a dhcpcd service on all interfaces, disable it solves my problem, I also enable the dhcpcd@eth1

sudo systemctl disable dhcpcd.service
sudo systemctl enable dhcpcd@eth1

Thanks progandy tongue

Last edited by geckos (2013-09-13 16:41:40)

Offline

Board footer

Powered by FluxBB