Last active
August 29, 2015 14:27
-
-
Save vjm/a19aa4c0493c4a6db622 to your computer and use it in GitHub Desktop.
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
# External Network | |
auto em1 | |
iface em1 inet dhcp | |
#iface em1 inet manual | |
# up ip link set dev $IFACE up | |
# down ip link set dev $IFACE down | |
# Internal Network | |
auto em1:0 | |
iface em1:0 inet static | |
address 10.0.10.30 | |
netmask 255.255.255.0 | |
# Management Network | |
auto em1:1 | |
iface em1:1 inet static | |
address 10.0.20.30 | |
netmask 255.255.255.0 | |
#gateway 10.0.20.1 | |
# up ip link set dev $IFACE up | |
# down ip link set dev $IFACE down |
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
# External Network | |
auto eth0 | |
iface eth0 inet dhcp | |
#iface eth0 inet manual | |
# up ip link set dev $IFACE up | |
# down ip link set dev $IFACE down | |
# Internal Network | |
auto eth0:0 | |
iface eth0:0 inet static | |
address 10.0.10.31 | |
netmask 255.255.255.0 | |
# Management Network | |
auto eth0:1 | |
iface eth0:1 inet static | |
address 10.0.20.31 | |
netmask 255.255.255.0 | |
#gateway 10.0.20.1 | |
# up ip link set dev $IFACE up | |
# down ip link set dev $IFACE down |
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
root@compute1:/home/vjm# ip a | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default | |
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: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 | |
link/ether 08:62:66:c5:90:0b brd ff:ff:ff:ff:ff:ff | |
inet 10.0.10.30/24 brd 10.0.10.255 scope global em1:1 | |
valid_lft forever preferred_lft forever | |
inet 10.0.1.30/24 brd 10.0.1.255 scope global em1 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::a62:66ff:fec5:900b/64 scope link | |
valid_lft forever preferred_lft forever | |
3: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default | |
link/ether 76:f2:2e:bc:4b:ad brd ff:ff:ff:ff:ff:ff | |
4: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default | |
link/ether 8e:af:8f:81:c9:42 brd ff:ff:ff:ff:ff:ff | |
5: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default | |
link/ether 42:31:12:e1:7c:40 brd ff:ff:ff:ff:ff:ff | |
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default | |
link/ether 52:54:00:1d:85:ac brd ff:ff:ff:ff:ff:ff | |
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 | |
valid_lft forever preferred_lft forever | |
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 500 | |
link/ether 52:54:00:1d:85:ac brd ff:ff:ff:ff:ff:ff | |
root@controller1:/home/vjm# ip a | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default | |
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 pfifo_fast state UP group default qlen 1000 | |
link/ether 48:5b:39:2b:2f:12 brd ff:ff:ff:ff:ff:ff | |
inet 10.0.10.31/24 brd 10.0.10.255 scope global eth0:1 | |
valid_lft forever preferred_lft forever | |
inet 10.0.1.31/24 brd 10.0.1.255 scope global eth0 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::4a5b:39ff:fe2b:2f12/64 scope link | |
valid_lft forever preferred_lft forever | |
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 | |
link/ether 68:05:ca:06:76:e2 brd ff:ff:ff:ff:ff:ff | |
4: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default | |
link/ether b6:6d:cd:6b:93:88 brd ff:ff:ff:ff:ff:ff | |
5: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default | |
link/ether ca:7f:b4:5e:25:46 brd ff:ff:ff:ff:ff:ff | |
6: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default | |
link/ether 02:84:69:df:5f:4c brd ff:ff:ff:ff:ff:ff |
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
root@compute1:/home/vjm# route -n | |
Kernel IP routing table | |
Destination Gateway Genmask Flags Metric Ref Use Iface | |
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 em1 | |
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 em1 | |
10.0.10.0 0.0.0.0 255.255.255.0 U 0 0 0 em1 | |
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 | |
vjm@controller1:~$ route -n | |
Kernel IP routing table | |
Destination Gateway Genmask Flags Metric Ref Use Iface | |
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eth0 | |
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 | |
10.0.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment