Created
June 30, 2015 13:51
-
-
Save standaloneSA/fdcee007a392a572636a to your computer and use it in GitHub Desktop.
CentOS 7 Bridge - Halp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@vagrant-centos7 ~]$ brctl show | |
bridge name bridge id STP enabled interfaces | |
br0 8000.005056a70416 no eno16780032 | |
veth0 | |
[vagrant@vagrant-centos7 ~]$ 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: eno16780032: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000 | |
link/ether 00:50:56:a7:04:16 brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::250:56ff:fea7:416/64 scope link | |
valid_lft forever preferred_lft forever | |
3: veth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 | |
link/ether 02:89:c2:5f:3a:ff brd ff:ff:ff:ff:ff:ff | |
inet 10.254.10.20/16 brd 10.254.255.255 scope global veth1 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::89:c2ff:fe5f:3aff/64 scope link | |
valid_lft forever preferred_lft forever | |
4: veth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000 | |
link/ether f6:28:18:47:51:fa brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::f428:18ff:fe47:51fa/64 scope link | |
valid_lft forever preferred_lft forever | |
5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP | |
link/ether 00:50:56:a7:04:16 brd ff:ff:ff:ff:ff:ff | |
inet 10.254.65.56/16 brd 10.254.255.255 scope global dynamic br0 | |
valid_lft 595sec preferred_lft 595sec | |
inet6 fe80::250:56ff:fea7:416/64 scope link | |
valid_lft forever preferred_lft forever | |
[vagrant@vagrant-centos7 ~]$ | |
[vagrant@vagrant-centos7 ~]$ ping -I veth1 8.8.8.8 | |
PING 8.8.8.8 (8.8.8.8) from 10.254.10.20 veth1: 56(84) bytes of data. | |
From 10.254.10.20 icmp_seq=1 Destination Host Unreachable | |
From 10.254.10.20 icmp_seq=2 Destination Host Unreachable | |
From 10.254.10.20 icmp_seq=3 Destination Host Unreachable | |
From 10.254.10.20 icmp_seq=4 Destination Host Unreachable | |
^C | |
--- 8.8.8.8 ping statistics --- | |
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 2999ms | |
pipe 4 | |
[vagrant@vagrant-centos7 ~]$ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vagrant@vagrant-centos7 ~]$ netstat -n -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.254.0.1 0.0.0.0 UG 0 0 0 br0
10.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 veth1
10.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 veth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 veth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br0