oscar-stack / puppet-debugging-kit

A batteries-included environment for debugging Puppet powered infrastructure.
29 stars 16 forks source link

AutoNetwork not working #8

Open cdenneen opened 7 years ago

cdenneen commented 7 years ago
Initializing AutoNetwork pool storage.
==> pe-201642-master: AutoNetwork assigning "10.20.1.2" to 'pe-201642-master'
==> pe-201642-master: Preparing network interfaces based on configuration...
    pe-201642-master: Adapter 1: nat
    pe-201642-master: Adapter 2: hostonly
==> pe-201642-master: Restarted DNS Service
==> pe-201642-master: Setting hostname...
==> pe-201642-master: Configuring and enabling network interfaces...

No 10.20.1.2 interface configured.

[vagrant@pe-201642-master ~]$ ifconfig -a
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::a00:27ff:feb7:f3af  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:b7:f3:af  txqueuelen 1000  (Ethernet)
        RX packets 690  bytes 74868 (73.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 529  bytes 71148 (69.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s8: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 08:00:27:b5:55:97  txqueuelen 1000  (Ethernet)
        RX packets 4  bytes 616 (616.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 888 (888.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 173  bytes 18461 (18.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 173  bytes 18461 (18.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[vagrant@pe-201642-master ~]$
[vagrant@pe-201642-master ~]$ more /etc/hosts
127.0.0.1 localhost
10.20.1.2 pe-201642-master.puppetdebug.vlan pe-201642-master
[vagrant@pe-201642-master ~]$ ping pe-201642-master.puppetdebug.vlan
PING pe-201642-master.puppetdebug.vlan (10.20.1.2) 56(84) bytes of data.
From 10.0.2.2 icmp_seq=1 Destination Net Unreachable
From 10.0.2.2 icmp_seq=2 Destination Net Unreachable
^C
--- pe-201642-master.puppetdebug.vlan ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1012ms

[vagrant@pe-201642-master ~]$ ping 10.0.2.15
PING 10.0.2.15 (10.0.2.15) 56(84) bytes of data.
64 bytes from 10.0.2.15: icmp_seq=1 ttl=64 time=0.017 ms
^C
--- 10.0.2.15 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.017/0.017/0.017/0.000 ms