LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-15-2005, 01:57 AM   #1
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Rep: Reputation: 15
Cant connect to the net


hey guys,

i have debian 3.1r0a runnig, and the network is configured as below:

debian:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:44:24:4E:F0
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:883 errors:0 dropped:0 overruns:0 frame:0
TX packets:458 errors:0 dropped:0 overruns:0 carrier:0
collisions:102 txqueuelen:1000
RX bytes:102042 (99.6 KiB) TX bytes:59682 (58.2 KiB)
Interrupt:11 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:840 (840.0 b) TX bytes:840 (840.0 b)

the problem is that when i ping to 192.168.1.61 (my INTERNET machie -windowz) it replys back, but when i try to ping cyber (INTERNET machines name) it says "ping: unknown host cyber" and i cant ping to google.com too. and i need to connect to the internet from my debian...

can anyone tell me how to do this


thanks in advance..
 
Old 09-15-2005, 02:06 AM   #2
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,242

Rep: Reputation: 48
check if you have firewall installed. Do

apt-get remove iptables

and check for other firewall on your system.

check your /etc/resolv.conf file and see if it gets proper DNS server IP.
 
Old 09-15-2005, 02:12 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
You need to setup the gateway in /etc/network/interfaces like;

iface eth0 inet static
address 192.168.1.103
netmask 255.255.255.0
gateway 192.168.1.61

If you want to get hostname resolution, such as ping cyber then you need to enter the details in /etc/hosts in the form;
192.168.1.61 cyber
 
Old 09-15-2005, 07:20 AM   #4
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
Can you ping Google when you use the ip-address of the Google server ?? So, does 'ping 216.239.59.99' work. If so, you are connected to the Internet, but your machine can't resolve the ip numbers from the DNS names. In that case you need to specify a DNS server in the file '/etc//resolv.conf'. It should look something like this:
Code:
search
nameserver      xxx.xxx.xxx.xxx
nameserver      xxx.xxx.xxx.xxx
You have to specify the ip-adress of the name server(s) where the xxx.xxx.xxx.xxx are.

Good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't connect to net theredeemer Linux - Newbie 4 12-30-2005 10:08 AM
Cant connect to the net issey Linux - Newbie 6 09-15-2005 04:09 AM
Why cant I connect to the net? duckmancornfed Linux - General 5 09-06-2004 05:26 PM
How do I connect to the net? ZeroX5 Linux - Hardware 13 07-26-2003 12:12 PM
How to connect to net dark_light Linux - Newbie 1 03-30-2003 04:47 PM


All times are GMT -5. The time now is 06:51 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration