N
N
nano_e_t_42017-04-15 21:18:06
Computer networks
nano_e_t_4, 2017-04-15 21:18:06

How to properly set up a bridge on ubuntu?

Hello everyone
, plz tell me how to set up the bridge correctly?
I use this manual, the bridge is set up, but at the end

ping 8.8.8.8
connect: Network is unreachable

System:
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.2 LTS
Release:	16.04
Codename:	xenial

created br0
hung up on enp0s8
ifconfig before setting up the bridge:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    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: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:60:66:1d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.102/24 brd 192.168.0.255 scope global dynamic enp0s8
       valid_lft 6645sec preferred_lft 6645sec
    inet6 fe80::3cc7:95c5:ed7d:5e3c/64 scope link 
       valid_lft forever preferred_lft forever
3: enp0s10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:3f:07:5a brd ff:ff:ff:ff:ff:ff

ifconfig after configuring the bridge:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    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: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000
    link/ether 08:00:27:60:66:1d brd ff:ff:ff:ff:ff:ff
3: enp0s10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:3f:07:5a brd ff:ff:ff:ff:ff:ff
    inet6 fe80::6f37:b814:c45:7bd6/64 scope link 
       valid_lft forever preferred_lft forever
5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 08:00:27:60:66:1d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.102/24 scope global br0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe60:661d/64 scope link tentative 
       valid_lft forever preferred_lft forever

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question