no connection
hi,
I am new to linux (thats why I post in this forum), and I have installed debian sarge net-install. But when I start linux, I dont have a connection. (Sometimes I do have a connection but I have to reboot a lot to get it) Does someone know how I can solve this problem? Or where I can start looking? |
im pritty noob myself, but i think i might be able to help here.
use "ifconfig" (as root) and see if eth0 is up,(i asume your using ethernet) if not use "ifconfig eth0 up" than, if you use dhcp, use "dhcpcd eth0", thats all i got. hope it helps. |
Quote:
|
He is running Debian Sarge.
You will just have to edit the net configuration, how is it when it doesn't work... and what does it look like when it is working? And what is the extent of not working? No internet, or just no DNS? |
Ya maybe i should'nt read so fast....
|
Quote:
I have a dual boot with windows, and on windows the internet works correctly. About the ifconfig, this is what I had when I have no connection. I have wrote it down on a piece of paper, and I am now typing it over, there could be some mistakes becouse of my bad handwryting: eth1: Link encap: Ethernet HWaddr 00:0A:48:02:85:7C inet6 addr: fe80::20a:48ff:fe02:857c/64 scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC 1 RX packets:62 errors:0 dropped:0 overrruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carriers:20 collisions:0 txqueelen:1000 RX bytes:3720 (3.6 KiB) TX bytes:0 (0,0b) interrupt 217 base adress:0xc000 lo: linkencap local loopback inet addr:127.0.0.1 mask: 255.0.0.0 inet addr::1/128 scope: Host up loopback running mtu: 16436 metric1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carriers:0 collisions:0 txqueelen:0 RX bytes:560 (560,0b) TX bytes:560 (560,0b) |
That doesn't really mention what is wrong. Can you go to IP addresses, instead of web addresses? Then it is a simple DNS issue that can be resolved(no pun inteded) easily.
Try going to a few IPs like: 68.178.151.47 64.233.167.99 199.181.132.250 Let me know if that works when the internet is "dead" |
Quote:
Or should I ping them with "ping ip"? |
If u cant ping anthing than it is not configured properly.
Quote:
Do you have 2 ethernet card? because u should see eth0 before eth1. if u do have 2, do this in a console as root: #ifconfig eth0 up If u have a dynamic ip (more than likely) try this in a console as root: #dhcpcd eth0 and/or #dhcpcd eth1 then ifconfig should display about the same thing but u should have an ip addr assigned. If u have a static ip u will have to assign it manually, i am not in linux right now so i cant find the command for that yet, but u probably have a dynamic. Run those command and cut/paste any ouput u get for them, also post back ifconfig after running those if u still have problem. |
The debian way is to edit the /etc/network/interfaces file.
In this file, it may look like: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp The above defines the loopback and the first ethernet device. It will use dhcp to assign the ip address. If you need a static ipaddress, then try the following for the eth0 device. Changing to an appropriate ip address. auto eth0 iface eth0 inet static address 192.168.0.2 <----- change address to reflect your network netmask 255.255.255.0 <----- once again change appropriately gateway 192.168.0.1 <----- put in the default gateway here, perhaps router address hope this helps |
Quote:
"Network is unreachable" Quote:
Quote:
Output for ifconfig (only for eth0): eth0: Link encap: Ethernet HWaddr 00:0A:48:02:85:7C inet6 addr: fe80::200:48ff:fe02:857c/64 scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC 1 RX packets:1 errors:0 dropped:0 overrruns:0 frame:0 TX packets:0 errors:3 dropped:0 overruns:0 carriers:6 collisions:0 txqueelen:1000 RX bytes:60 (60.0 KiB) TX bytes:0 (0,0b) interrupt 209 base adress:0xc000 And I have added this to my interfaces file: auto eth0 iface eth0 inet static address 83.81.177.195 <--my ip netmask 255.255.255.0 gateway 83.81.176.1 But with no luck :( |
Hi,
If you always have the same IP number it does not means it is static. You could be using DHCP and it just that the server always assigns you the same IP. Try to check that on your Windows configuration (can't help you there, too long since the last time I was on Windows). Next, I would try to make it work using ifconfig/ifup before editing /etc/network/interfaces. Doing so, you'll learn which is the problem, solve it and then to edit the file will be simple. Also, since eth1 seems to work fine: Have you tried to use that one to connect to the internet? My guess is that you are using it to share the internet connection, but if not then it wouldn't hurt you to connect thru that one. (At least it may help you to isolate problems.) Let us know how things are going. Regards |
Quote:
Quote:
Quote:
|
there is your main problem, but i dont know how to install on debian sarge. Try to find and install it.
|
To install dhcpcd on debian, execute the following command as root:
apt-get install dhcpcd that should install the dhcp client software. Hope this helps |
All times are GMT -5. The time now is 02:41 PM. |