You are not logged in.

#1 2018-12-03 19:51:47

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 130
Website

Problem Setting Up a Network Bridge with Netctl and with a Static IP.

I am setting up an Arch box to act as a host running VM's using QEMU. I am trying to set up a network bridge using netctl. If I follow the example in the Wiki, I can set up the bridge using dhcp. However, I can't get  a bridge with a static IP.

My interfaces look like this:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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 fq_codel state UP group default qlen 1000
    link/ether 94:de:80:70:9c:fd brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.31/24 brd 192.168.0.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::96de:80ff:fe70:9cfd/64 scope link 
       valid_lft forever preferred_lft forever

If I use the example in the netctl wiki:

Description="Example Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(eth0)
#IP=dhcp
IP=static
IP='192.168.0.31/24'
Gateway='192.168.0.1'
## Ignore (R)STP and immediately activate the bridge
SkipForwardingDelay=yes

the bridge interface doesn't get assigned an IP4 address.

Offline

Board footer

Powered by FluxBB