LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-21-2004, 12:05 AM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
establishing internet connection after boot


i used the netconfig to set up my internet connection. if the cable is not plugged in when i boot up, is there a command that will enable the connection manually?
 
Old 04-21-2004, 12:20 AM   #2
d0t3x3
LQ Newbie
 
Registered: Apr 2004
Distribution: Gentoo 2004.0 - 2.6
Posts: 4

Rep: Reputation: 0
you will need to manually issue a command from the command line once your machine is booted and the network is connected. this command will be similar to:

/etc/rc.d/init.d/network start

this can vary from distro to distro so please verify the command for you distro.

keep in mind /etc/rc.d/init.d/network restart and /etc/rc.d/init.d/network stop are also valid commands. i hope this helps.
 
Old 04-21-2004, 01:20 AM   #3
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
the init.d folder does not exist in rc.d here is the directory listing...

atlantis:/etc/rc.d $ ls
rc.0@ rc.S* rc.cups* rc.inet1* rc.local* rc.pcmcia rc.sshd*
rc.4* rc.acpid* rc.font.sample* rc.inet1.conf rc.lprng rc.portmap rc.syslog*
rc.6* rc.alsa* rc.gpm* rc.inet2* rc.modules* rc.samba rc.sysvinit*
rc.K* rc.atalk rc.hotplug* rc.inetd* rc.mysqld rc.sendmail rc.yp*
rc.M* rc.bind rc.httpd rc.ip_forward rc.nfsd* rc.serial*
 
Old 04-21-2004, 03:09 AM   #4
dimi
Member
 
Registered: May 2003
Location: Sydney, Australia
Distribution: Debian
Posts: 67

Rep: Reputation: 15
Do "/etc/init.d/networking start", this is how it is on Debian. Like dot3x3 had pointed out, it differs from distro to distro.

Most of the time its better to do a restart, as even if network is running, restart will reset the ethernet.

D
 
Old 04-21-2004, 01:56 PM   #5
silver2003
LQ Newbie
 
Registered: Apr 2004
Location: Romania
Distribution: RedHat 7.3
Posts: 28

Rep: Reputation: 15
Netconfig

The preferred way of setting up your network connection is through the use of the netconfig program. Run this as root and you will presented with a series of questions to answer. The program will then create the rc.inet1 file. You will also need kernel support for your network card. The netconfig program can probe your system for a network card and enable it. Or you can edit /etc/rc.d/rc.modules and select your card. You can, of course, edit the network configuration files by hand. They are /etc/rc.d/rc.inet1 and /etc/rc.d/rc.inet2, which are discussed in greater detail below.

rc.inet1

rc.inet1's role is simple: it configures your networking devices and sets up your routing. Essentially, rc.inet1 is the file that gives you a network in the first place.

Sample of rc.inet1

# Edit for your setup.
IPADDR="111.112.113.114"
NETMASK="255.255.255.0"
NETWORK="111.112.113.0"
BROADCAST="111.112.113.255"
GATEWAY="111.112.113.1"
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Establishing Internet Connection TtWEAK Linux - Networking 1 09-21-2005 04:15 AM
ssh hangs after establishing connection TreeHugger Linux - Security 2 11-03-2004 11:20 AM
Establishing an Internet Connection anders_ant Linux - Networking 3 07-27-2004 01:37 PM
Establishing an ethernet connection mikefoo Linux - Networking 2 11-07-2003 06:58 AM
establishing a internet connection iguarin Linux - Newbie 1 05-20-2003 07:35 PM


All times are GMT -5. The time now is 12:41 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration