LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-09-2004, 06:47 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,133

Rep: Reputation: 45
ip + interface + gateway


Hi... I want to configure my eth0 interface in a such way that i use the dchp server in my job.
I also need to enter my gateway and the debian remembers it....
How i can do all the above?
 
Old 11-09-2004, 07:35 AM   #2
muppski
Member
 
Registered: Feb 2003
Posts: 149

Rep: Reputation: 15
use ifconfig
 
Old 11-09-2004, 09:41 AM   #3
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
/sbin/ifconfig and /sbin/route can only be used for setting net connection for the current session -- once you reboot, the settings (and your net connection) will be lost and you'll have to start again. It's really much better to edit the config files /etc/network/interfaces and /etc/resolv.conf, like suggested in your earlier thread on the same issue http://www.linuxquestions.org/questi...hreadid=252363

Here's some help for editing the Debian network config files:
http://www.icon.co.za/~psheer/book/n...00000000000000
http://www.icon.co.za/~psheer/book/n...00000000000000
 
Old 11-12-2004, 05:35 PM   #4
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
Re: ip + interface + gateway

Quote:
Originally posted by alaios
Hi... I want to configure my eth0 interface in a such way that i use the dchp server in my job.
I also need to enter my gateway and the debian remembers it....
How i can do all the above?
edit /etc/network/interfaces to:

# The loopback interface
auto lo
iface lo inet loopback
# dhcp
auto eth0
iface eth0 inet dhcp

save the file and restart your network service using "/etc/init.d/networking restart".
 
  


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
What is a gateway? can I have more than one gateway on a vlan? abefroman Linux - Networking 3 09-06-2005 11:43 AM
How to change defualt gateway interface banner Linux - Networking 1 05-08-2005 12:47 PM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 01:54 AM
Why does my internet interface keep getting a gateway silence Linux - Networking 2 06-18-2004 12:34 PM
LAN interface on Gateway stops being able to send info to LAN intermittantly. BurnFEST Debian 2 11-01-2003 04:16 AM


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