You are not logged in.

#1 2014-03-09 21:58:47

zidarsk8
Member
Registered: 2011-12-06
Posts: 97

[SOLVED] netctl bridge device with static ip - doesn't get set the ip

I have two network interfaces enp2s0 and enp6s5

enp2s0 is on wan
enp6s5 is on lan

I would like to make two bridges br-lan and br-wan, both with static IPs. The problem is IP only gets set if I set IP=dhcp

$ cat /etc/netctl/br-lan 
Description="Local bridge network"
Interface=br-lan
Connection=bridge
BindsToInterfaces=(enp6s5)
#IP=no
IP=static
Adress=('10.0.0.1/24')
DNS=('84.255.209.79' '84.255.210.79')
$ cat /etc/netctl/lan-enp6s5 
Description='A basic dhcp ethernet connection'
Interface=enp6s5
Connection=ethernet
IP=no
#IP=static
#Adress=('10.0.0.1/24')
#DNS=('84.255.209.79' '84.255.210.79')

br-wan has ip dhcp, br-lan is set on static

$ ip addr
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: enp2s0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br-wan state UP group default qlen 1000
    link/ether 08:60:6e:85:f6:31 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a60:6eff:fe85:f631/64 scope link 
       valid_lft forever preferred_lft forever
3: enp6s5: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br-lan state UP group default qlen 1000
    link/ether 94:0c:6d:80:a4:8c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::960c:6dff:fe80:a48c/64 scope link 
       valid_lft forever preferred_lft forever
4: br-wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 08:60:6e:85:f6:31 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.4/24 brd 192.168.1.255 scope global br-wan
       valid_lft forever preferred_lft forever
    inet6 fe80::a60:6eff:fe85:f631/64 scope link 
       valid_lft forever preferred_lft forever
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 94:0c:6d:80:a4:8c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::960c:6dff:fe80:a48c/64 scope link 
       valid_lft forever preferred_lft forever

netctl status on all 4 configs shows active (exited)


I have been looking through this wiki https://wiki.archlinux.org/index.php/Bridge_with_netctl but all it says is:

Tip: If you are using static IP, see man pages of netctl, and also edit /etc/resolv.conf if necessary.

and that doesn't help me much. Does anyone have any tips?

Thank you

Last edited by zidarsk8 (2014-03-10 10:03:55)

Offline

#2 2014-03-09 22:30:54

andy123
Member
Registered: 2011-11-04
Posts: 169
Website

Re: [SOLVED] netctl bridge device with static ip - doesn't get set the ip

Hi,

I think someone recently had a similar problem, but it comes down to this:  for a bridge profile with netctl, you only need said profile and no profiles for the slave devices.

Simply disable and stop your lan-enp6s5 profile and start your br-lan profile.


i'm sorry for my poor english wirting skills…

Offline

#3 2014-03-10 10:03:34

zidarsk8
Member
Registered: 2011-12-06
Posts: 97

Re: [SOLVED] netctl bridge device with static ip - doesn't get set the ip

Okay, I've got it working, but not by just having the bridge enabled. For some reason that didn't make a difference, so I tried it like this

Description="Local bridge network"
Interface=br-lan
Connection=bridge
BindsToInterfaces=(enp6s5)
#IP=no
IP=static
IPCustom=('addr add dev br-lan 10.0.0.1/24 brd +' )

#Adress=('10.0.0.1/24')
DNS=('84.255.209.79' '84.255.210.79')

Offline

#4 2014-03-10 14:54:30

Centzilius
Member
From: Berlin, Germany
Registered: 2014-03-09
Posts: 14
Website

Re: [SOLVED] netctl bridge device with static ip - doesn't get set the ip

zidarsk8 wrote:
Adress=('10.0.0.1/24')

There is a typo. It should be

Address=('10.0.0.1/24')

PGP-Key: BEF72880 - Website
Please excuse my poor English skills. I'm not a native speaker.

Offline

Board footer

Powered by FluxBB