Hi All,
I would like to use the ubuntu image provided by eve-ng to test python on the network. I would need the ifconfig command on the ubuntu machine but it is not installed.
Question: how can I make a connection to the Internet via Google Cloud so that the Ubuntu machine (or any equipment really) can reach out to the Internet?
Thanks,
Daniel
Internet access on Google Cloud
Moderator: mike
-
- Posts: 2
- Joined: Mon Dec 28, 2020 2:01 pm
Re: Internet access on Google Cloud
Here is some output of my eve-ng on gcp:
root@eveng-us:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.142.0.1 0.0.0.0 UG 0 0 0 pnet0
10.142.0.1 * 255.255.255.255 UH 0 0 0 pnet0
***excerpt from interfaces***
# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet dhcp
bridge_ports eth0
bridge_stp off
# Cloud devices
iface eth1 inet manual
auto pnet1
iface pnet1 inet dhcp
bridge_ports eth1
bridge_stp off
root@eveng-us:/# ping 8.8.8.8 -c 2
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=0.816 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=0.774 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1030ms
rtt min/avg/max/mdev = 0.774/0.795/0.816/0.021 ms
root@eveng-us:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.142.0.1 0.0.0.0 UG 0 0 0 pnet0
10.142.0.1 * 255.255.255.255 UH 0 0 0 pnet0
***excerpt from interfaces***
# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet dhcp
bridge_ports eth0
bridge_stp off
# Cloud devices
iface eth1 inet manual
auto pnet1
iface pnet1 inet dhcp
bridge_ports eth1
bridge_stp off
root@eveng-us:/# ping 8.8.8.8 -c 2
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=0.816 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=0.774 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1030ms
rtt min/avg/max/mdev = 0.774/0.795/0.816/0.021 ms