LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-23-2005, 04:06 AM   #1
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 537

Rep: Reputation: 79
/etc/network/interfaces


Hello there,

I made some change in the file /etc/network/interfaces and now i want to apply these change to the interface.

in few word before it was:
Code:
iface eth0 inet dhcp
and i change it to:
Code:
iface eth0 inet static
   address 192.168.123.160
   netmask 255.255.255.0
   network 192.168.123.0
   broadcast 192.168.123.255
   gateway 192.168.123.254
I was just wondering how can i apply these changes to the interface with out rebooting.
i've allready try
Code:
ifdown eth0
ifup eth0
but the interface keep it old ip address from the dhcp.

any idea? is there any other file to edit?

Thanks
 
Old 10-23-2005, 04:29 AM   #2
sats
LQ Newbie
 
Registered: Sep 2005
Location: india
Posts: 13

Rep: Reputation: 0
Edit /etc/sysconfig/networkingscript/device/ifcfg-eth0.
End put your entery over there
and start
service network 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
Two Interfaces on the same Network cspcom Linux - Newbie 6 06-18-2005 04:32 PM
Network Interfaces aussben Linux - Wireless Networking 3 12-18-2004 02:35 AM
SuSE 9.1 and two network interfaces spyderusa11 Linux - Distributions 1 08-25-2004 07:44 AM
need help with /etc/network/interfaces littlemidget Linux - Networking 1 08-04-2004 07:00 PM
2 network interfaces with IpCop Lonix Linux - Hardware 0 05-12-2004 09:16 PM

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

All times are GMT -5. The time now is 04:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration