Hello,
I'm running ubuntu 16.04 on vmware, my vm network adapter is set to share with my mac (I know mac isn't the best choice, I plan to get a pc in the fall)
I'm new to ubuntu, this forum, and posting to forums in general, so I'm sorry in advance if I do something wrong.
I'm currently in an intro to Linux class and we are working on networking. I'm having problems with my system and can't get ahold of my professor. We've done some messing around with the network settings, but I reverted to an old snapshot so the settings would be back to normal. Unfortunately I didn't save the system state before reverting to the old snapshot. The snapshot I am using now doesn't seem to be able to connect to the network. I've tried the following commands (the results are listed in each sub bullet point)
I'm hoping someone can help me reconnect my system to the network or fix whatever is going on. Thanks!!
I'm running ubuntu 16.04 on vmware, my vm network adapter is set to share with my mac (I know mac isn't the best choice, I plan to get a pc in the fall)
I'm new to ubuntu, this forum, and posting to forums in general, so I'm sorry in advance if I do something wrong.
I'm currently in an intro to Linux class and we are working on networking. I'm having problems with my system and can't get ahold of my professor. We've done some messing around with the network settings, but I reverted to an old snapshot so the settings would be back to normal. Unfortunately I didn't save the system state before reverting to the old snapshot. The snapshot I am using now doesn't seem to be able to connect to the network. I've tried the following commands (the results are listed in each sub bullet point)
- ping www.google.com
- ping: unknown host www.google.com
- sudo apt-get install upgrade
- E: Unable to locate package upgrade
- sudo apt-get install
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- when I try to ping another ip address on my LAN
- connect: Network is unreachable
- sudo /etc/init.d/networking restart
- [ok] Restarting networking (via systemctl): networking.service.
- If I try pinging after that, I get the same response as shown above, nothing changes
- ip a
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
indet 127.00.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/120 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:d8:30:77 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fed8:3077/64 scope link
inet6 fe80::20c:29ff:fed8:3077/64 scope link
valid_lft forever preferred_lft forever
- cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens33
iface ens33 inte dhcp
# and how to activate them. For more information, see interaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens33
iface ens33 inte dhcp
- I've also tried installing a new ubuntu vm, but whenever I do, the system can't connect to the dhcp server. This makes me wonder if there's an issue with more than just my one vm. But I have a CentOS vm on the same computer that connects to the network just fine, and successfully pings google. The CentOS vm has two network adapters, one static and one using dhcp, both network adapters are connected by sharing with my mac.
I'm hoping someone can help me reconnect my system to the network or fix whatever is going on. Thanks!!