LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2002, 12:20 PM   #1
pika
LQ Newbie
 
Registered: May 2002
Location: Belgium
Distribution: Fedora 11
Posts: 10

Rep: Reputation: 0
Question load different net work config @boot


Hello,

I have Redhat 7.3 installed on my laptop, at home I use a dhcp server to connect to my network, at work I have to use a static IP.

As you might guess, I have to wait every time for eth0 to timeout, edit my network settings, and restart the network before I can start doing things that need a network connection.

I was just wondering if it was possible to specify which network settings to use at boot time. Something like an extra entry in the bootloader that uses different network settings.

Sorry if there something like this is already explained somewhere (I didn't find it).

Any help would be greatly appreciated,

Regards
 
Old 12-16-2002, 01:48 PM   #2
indi
LQ Newbie
 
Registered: Dec 2002
Distribution: redhat
Posts: 14

Rep: Reputation: 0
I have two interfaces

static
=================================
[root@linux network-scripts]# more ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.7.1
NETMASK=255.255.255.0


dynamic --- you won't be having eth1
=================================
[root@linux network-scripts]# more ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=dhcp

what I can suggest is go to /etc/sysconfig/network-scripts and create a ifcfg-eth0:0 it will be a new virtual interface configured for DHCP.

=================================
[root@linux network-scripts]# more ifcfg-eth0:0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

Try it :-) hopefully shd work. may be you can try DHCP one as eth0 and static one as eth0:0

let me know if it works or not.
 
Old 12-16-2002, 01:56 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
moved: more suitable in the networking forum
 
Old 12-16-2002, 02:24 PM   #4
pika
LQ Newbie
 
Registered: May 2002
Location: Belgium
Distribution: Fedora 11
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for you answer,

I'm sure it's possible and I will try the stuff you suggested as soon as possible, I'll let you know if it works or if I find another solution.

Greetz
 
  


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
Net-Snmpd load at boot? IntelSlacker Linux - Software 2 04-22-2005 05:12 PM
net config regnier Mandriva 9 02-11-2005 07:34 AM
Need to run system-config-sound after every boot too make sound work in FC2 jrbiochem Linux - Hardware 11 08-04-2004 07:08 AM
Can connect to net but no pages load craigl Mandriva 2 02-10-2004 01:23 PM
Net Config RUN Linux - General 4 07-16-2002 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:30 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