I just had the exact same thought.:p
Originally Posted by elija
It did not list the file name. AND I only had that message returned one time. I have entered the command numerous times since without getting "file exists".
If you get the file exists error then you can try
assuming that your nic is eth0
sudo dhclient eth0 -r
See this bug report[/edit]
Jay and Elija:
I run ifconfig and get:
"eth0 Link encap: Ethernet HW addr 00:06:5b:47:a3:1b
inet addr: 192.168.0.5 Bcast: 192.168.0.25 Mask: 255.255.255.0
inet6 addr: fe80: :206:5bff:fe47:a31b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX Packets 58001 errors:0 dropped:0 overruns:1 frame:0
TX packets:23157 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:12004820 (12.0MB) TX bytes 1570932 (1.5MB)
Interrupt:11 Base address:0xec00
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 9068 errors:0 dropped:0 overruns:0 frame:0
TX packets:9068 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:740505 (740.5 KB) TX bytes: 740505 (740.5 KB)"
Of course the "eth0" and the "lo" preceeding each are off to the left.
I tried the code. Still can't connect.
Can you ping an ip address outside of your network, for example google.com at 188.8.131.52. What are the results of
Make sure that you do 'ifconfig -a' as this will display all interfaces, even those that are down.
Originally Posted by Chris43068
If your subnet is 255.255.255.0, then your broadcast address should be 192.168.0.255. I'll assume that you typed this by hand and typed it incorrectly?
If the router is handing out addresses, you can ping it, and you can access the Internet with other machines, then my suspicions are on the firewall. Please use the command 'iptables -L -v -n' as root and show us the results.
When i ping Google, I get "network is unreachable". Do I need to type anything prior to "cat /etc/resolv.conf" because i get "no such file or directory". As to the firewall, I disabled it in the router's settings (reached it successfully from the Windows machine) and still had no luck connecting.
When i run ifconfig -a I get virtually the same thing minus the IP addrress and Subnet Mask.
Originally Posted by Krendoshazin
Are you able to ping Googles' IP address?
If you're able to get a reply, try this command to populate/create a resolv.conf file:
Answer YES when it asks to dynamically update.
sudo dpkg-reconfigure resolvconf