$ ip netns exec ns1 ip link delete veth1 $ ip link add name veth1 type veth peer name veth2 $ ip link 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 52:54:00:01:b0:24 brd ff:ff:ff:ff:ff:ff 3: eth1: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 52:54:00:02:e3:f1 brd ff:ff:ff:ff:ff:ff 7: veth2: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether c6:27:2a:a8:06:ca brd ff:ff:ff:ff:ff:ff 8: veth1: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 26:3e:ce:c5:de:de brd ff:ff:ff:ff:ff:ff $ ip -f inet addr show eth0 2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.56.130/24 brd 192.168.56.255 scope global eth0 valid_lft forever preferred_lft forever $ ip addr del 192.168.56.130/24 dev eth0 $ brctl addbr br0 $ ip addr add 192.168.56.130/24 dev br0 $ ip link set br0 up $ ip -f inet addr show br0 9: br0: mtu 1500 qdisc noqueue state UNKNOWN group default inet 192.168.56.130/24 scope global br0 valid_lft forever preferred_lft forever $ brctl addif br0 eth0 $ brctl addif br0 veth1 $ brctl show bridge name bridge id STP enabled interfaces br0 8000.263ecec5dede no eth0