INFO ssh: Execute: sed -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces (sudo=true)
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet dhcp
post-up route del default dev $IFACE
#VAGRANT-END
sudo route add default gw 10.69.51.253
sudo route del default gw 10.0.2.2 netmask 0.0.0.0 eth0
Vagrant::Config.run do |config|
config.vm.box = "precise"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.network :bridged, bridge: "em1"
end
vagrant@precise32:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:12:96:98
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe12:9698/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:440 errors:0 dropped:0 overruns:0 frame:0
TX packets:316 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49959 (49.9 KB) TX bytes:39019 (39.0 KB)
eth1 Link encap:Ethernet HWaddr 08:00:27:58:b8:91
inet addr:10.69.50.46 Bcast:10.69.50.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe58:b891/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1490 errors:0 dropped:5 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:145954 (145.9 KB) TX bytes:1152 (1.1 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vagrant@precise32:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 10.0.2.2 0.0.0.0 UG 100 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.69.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
vagrant@precise32:~$ ping www.gogole.co.uk
PING www.gogole.co.uk (74.86.197.160) 56(84) bytes of data.
64 bytes from 74.86.197.160-static.reverse.softlayer.com (74.86.197.160): icmp_req=1 ttl=63 time=140 ms
64 bytes from 74.86.197.160-static.reverse.softlayer.com (74.86.197.160): icmp_req=2 ttl=63 time=141 ms
^C
--- www.gogole.co.uk ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 140.405/141.020/141.635/0.615 ms
vagrant@precise32:~$
tfadmin@hobo1:~/projects/test1$ ifconfig
em1 Link encap:Ethernet HWaddr 10:60:4b:5b:01:76
inet addr:10.69.50.85 Bcast:10.69.50.255 Mask:255.255.255.0
inet6 addr: fe80::1260:4bff:fe5b:176/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1785569 errors:0 dropped:40462 overruns:0 frame:0
TX packets:402981 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1065103768 (1.0 GB) TX bytes:31584989 (31.5 MB)
Interrupt:20 Memory:f7100000-f7120000