Skip to content

Instantly share code, notes, and snippets.

@demofly
Created August 1, 2013 11:36
Show Gist options
  • Save demofly/6130566 to your computer and use it in GitHub Desktop.
Save demofly/6130566 to your computer and use it in GitHub Desktop.
(cat /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /var/lib/dhclient/*.leases; ip route show) > /root/network-info.txt
NETWORKING=yes
GATEWAY=10.8.8.8
HOSTNAME=fuel-controller-01
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
lease {
interface "eth1";
fixed-address 10.8.8.85;
option subnet-mask 255.255.255.0;
option routers 10.8.8.8;
option dhcp-lease-time 1800;
option dhcp-message-type 5;
option domain-name-servers 10.8.8.8;
option dhcp-server-identifier 10.8.8.8;
option dhcp-renewal-time 900;
option broadcast-address 10.8.8.255;
option dhcp-rebinding-time 1575;
renew 5 2013/07/26 18:17:52;
rebind 5 2013/07/26 18:32:30;
expire 5 2013/07/26 18:36:15;
}
10.8.8.0/24 dev br-ex proto kernel scope link src 10.8.8.101
10.0.0.0/16 dev br-mgmt proto kernel scope link src 10.0.0.101
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
169.254.0.0/16 dev eth2 scope link metric 1004
169.254.0.0/16 dev br-mgmt scope link metric 1006
169.254.0.0/16 dev br-ex scope link metric 1007
192.168.0.0/16 dev qr-6b68ea92-0f proto kernel scope link src 192.168.0.1
default via 10.8.8.8 dev br-ex metric 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment