LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-20-2005, 06:49 AM   #1
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
No Internet in Debian.


I was asked to enter the Network configuration during the installation, but i did not do that, as I had discovered a bug in the previous apt-get...(It used to search for an internet connection ..which I can't get without a login to my ISP server.)

I even can't see a gui for that thing.

I tried the following commands.
Code:
ifconfig eth0 up   

ifconfig eth0 inet netmask 255.255.255.0

ifconfig eth0 inet broadcast xx.xx.xxx.255

ifconfig eth0 inet address xx.xx.xxx.xxx.

route add default gw xx.xx.xxx.1
Internet worked fine then.
But when I restarted the computer, all the addresses had vanished and I get the following error.

Code:
Error: SIOCSIFBRDADDR: Cannot assign requested address
Moreover, the ifconfig -a command gives the following output.

Code:
root@copperskull:/home/amit # ifconfig -a
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::4e00:10ff:fe00:c0cc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:449 errors:186 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:47506 (46.3 KiB)  TX bytes:378 (378.0 b)
          Interrupt:11 Base address:0xd000

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:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1800 (1.7 KiB)  TX bytes:1800 (1.7 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

How can I get a permanent Internet connection configured on debian?

I have no problem editing files, but just set me off --what file to edit.

Best if you could suggest a GUI thingy for the same.



PS: The LAN Card is not activated on boot. I do it by using ifconfig. How do I change it so that it would start (be UP) automatically at boot-up?


Thank you.
 
Old 10-20-2005, 07:11 AM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
You can set up a temporary network connection with ifconfig and then install the "etherconf" utility, and use it to set up a permanent net connection.

Or you can edit /etc/network/interfaces , as explained in Debian Reference:

http://www.debian.org/doc/manuals/re...tml#s-net-high
 
Old 10-20-2005, 07:16 AM   #3
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Yes. I already had referred to that link.

Can I get the etherconf utility from the CDs?
I guess it would be there in one of the CD.

(What about that error I am getting when I try to setup a temporary connection with ifconfig now? )
 
Old 10-20-2005, 07:17 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Also for a GUI there is the package gnome-system-tools. It should add something in your menu , System Tool, Network tool.

I've not tried it, I manually edit /etc/network/interfaces.

For a temporary connection:
ifconfig eth0 1.1.1.1 netmask 255.255.0.0 broadcast 1.1.1.255
route add default gw 1.1.1.2

Last edited by nx5000; 10-20-2005 at 07:24 AM.
 
Old 10-20-2005, 07:21 AM   #5
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
OK. I will edit that file.

Now, how do I see to it that eth0 is activated on bootup?
 
Old 10-20-2005, 07:29 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
On startup, linux starts network by running
/etc/init.d/network start
which calls
/sbin/ifup -a
which brings up all interfaces that have an "auto" line in interfaces file.

So if you want eth0 to be brought up at boot, put a line :
auto eth0

and to bring it down or up manually, use
ifdown eth0
ifup eth0
 
Old 10-20-2005, 07:47 AM   #7
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Thanks for the information. I will try that.


By the way, Internet is working in Debian now.

The Etherconf thing worked like a charm.

I also tried to edit the /etc/network/interfaces file but nothing happened.

Here is my /etc/network/interfaces file just to be sure everything is alright.
Internet is working fine now, but I would like to know what was wrong with the file I edited?

Edited /etc/network/interfaces file:

Code:
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0

iface lo inet loopback

iface eth0 inet static
        address xx.xx.xxx.xxx
        netmask 255.255.255.0
        broadcast xx.xx.xxx.255
        gateway xx.xx.xxx.1


### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.

And the Original file was :

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

iface dsl-provider inet ppp
     provider dsl-provider
# please do not modify the following line
     pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf

Thank you again.
 
Old 10-20-2005, 07:55 AM   #8
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Quote:
On startup, linux starts network by running
/etc/init.d/network start
which calls
/sbin/ifup -a
which brings up all interfaces that have an "auto" line in interfaces file.

So if you want eth0 to be brought up at boot, put a line :
auto eth0

Sorry! But i did not understand this.


There was a file called "networking" in the init.d folder.
Please tell me more about it. Did not really get what were you trying to say.
 
Old 10-20-2005, 07:58 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally posted by duffmckagan


I also tried to edit the /etc/network/interfaces file but nothing happened.
After modifying this file, you need to restart the network subsystem so that changes are taken into account
/etc/init.d/network restart

Quote:

Here is my /etc/network/interfaces file just to be sure everything is alright.
Seems ok. The gateway adress must be in the same subnet as yours.
 
Old 10-20-2005, 07:59 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally posted by duffmckagan

There was a file called "networking" in the init.d folder.
Yes you're right it's networking, not network
 
Old 10-20-2005, 08:13 AM   #11
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Yes. Everything seems to be working fine now.

I also changed the Mode of working of my LAN card using mii-tool, so it is compliant with my ISP.

Moreover, eth0 also comes up on its own.
I think Etherconf did that automatically.


Thanks for the help.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Install = Internet? carlosinfl Debian 3 08-25-2005 04:23 PM
[Debian] Getting internet to work :S jepper Linux - Networking 1 05-17-2005 02:01 PM
debian on dial-up-- no internet bluesky2005 Linux - Networking 5 03-27-2005 03:19 PM
internet sharing with debian. Help please. gonus Debian 6 09-24-2004 06:40 PM
Connecting to internet with Debian NoviceW Debian 5 01-30-2004 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration