Skip to content

Instantly share code, notes, and snippets.

@vbrinza
Created March 2, 2016 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbrinza/cf341a985ab4cc2d9a9a to your computer and use it in GitHub Desktop.
Save vbrinza/cf341a985ab4cc2d9a9a to your computer and use it in GitHub Desktop.
[root@openstack ~(keystone_admin)]# ifconfig
br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet PUBLIC_IP netmask 255.255.255.224 broadcast PUBLIC_BROADCAST_IP
inet6 fe80::4caf:3aff:fe16:3946 prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:34:89:0e txqueuelen 0 (Ethernet)
RX packets 880762 bytes 499657642 (476.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8765 bytes 9216115 (8.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp4s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::ec4:7aff:fe34:890e prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:34:89:0e txqueuelen 1000 (Ethernet)
RX packets 924649 bytes 502771018 (479.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12275 bytes 9445391 (9.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xc7120000-c713ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 35849026 bytes 3402877543 (3.1 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 35849026 bytes 3402877543 (3.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
qbr5d74e654-06: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::889e:68ff:feb3:b492 prefixlen 64 scopeid 0x20<link>
ether 8e:ad:45:99:12:27 txqueuelen 0 (Ethernet)
RX packets 19 bytes 1708 (1.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 648 (648.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
qvb5d74e654-06: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet6 fe80::8cad:45ff:fe99:1227 prefixlen 64 scopeid 0x20<link>
ether 8e:ad:45:99:12:27 txqueuelen 1000 (Ethernet)
RX packets 225 bytes 26624 (26.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 297 bytes 27145 (26.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
qvo5d74e654-06: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet6 fe80::88b8:d4ff:fee6:c2d5 prefixlen 64 scopeid 0x20<link>
ether 8a:b8:d4:e6:c2:d5 txqueuelen 1000 (Ethernet)
RX packets 297 bytes 27145 (26.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 225 bytes 26624 (26.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tap5d74e654-06: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc16:3eff:fe63:161a prefixlen 64 scopeid 0x20<link>
ether fe:16:3e:63:16:1a txqueuelen 500 (Ethernet)
RX packets 282 bytes 25939 (25.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 233 bytes 27260 (26.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@openstack ~(keystone_admin)]#
[root@openstack network-scripts(keystone_admin)]# cat ifcfg-br-ex
TYPE=OVSBridge
BOOTPROTO=static
NAME=br-ex
DEVICE=br-ex
DEVICETYPE=ovs
ONBOOT=yes
IPADDR=PUBLIC_IP
PREFIX=27
GATEWAY=PUBLIC_GW
DNS1=8.8.8.8
[root@openstack network-scripts(keystone_admin)]# cat ifcfg-enp4s0f0
TYPE=OVSPort
NAME=enp4s0f0
DEVICE=enp4s0f0
HWADDR="0c:c4:7a:34:89:0e"
ONBOOT=yes
OVS_BRIDGE=br-ex
DEVICETYPE=ovs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment