LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-08-2004, 08:27 PM   #1
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Restart network connection?


Okay, at home I connect to our LAN/Internet through DHCP from the Router, but when I got LANning with my friends, it's not a 100% guaranteed thing that we'll have a router, so often I find myself manually configuring my IP address. Now this isn't a problem, but I don't like uneccesarily restarting my computer, so, after starting up my computer, and running netconfig, how can I make the changes effective immediately without having to restart my computer?
 
Old 09-08-2004, 08:49 PM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi,

All you need to do is restart the network service. What distro are you using?

>Craig
 
Old 09-09-2004, 01:03 AM   #3
imezsons
LQ Newbie
 
Registered: Sep 2004
Location: india
Posts: 14

Rep: Reputation: 0
hi

jus give "service network restart" after changing the IP or making any changes in network devices.

if u face the any problem again jus give "ifup eth0"..(the eth number is depended on number of card u use.)

regards
lenin
 
Old 09-09-2004, 01:56 AM   #4
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
The best way to change the ip address and make it instant would be to use
Code:
#ifconfig eth0 ip_addr netmask network_mask gw <gateway_ip_addr>
 
Old 09-09-2004, 03:55 AM   #5
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
Quote:
Originally posted by nitin_batta
The best way to change the ip address and make it instant would be to use
Code:
#ifconfig eth0 ip_addr netmask network_mask gw <gateway_ip_addr>
you should add a 'up' to the end of that... otherwise it won't start the eth device.
 
Old 09-09-2004, 06:16 AM   #6
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Oops forgot to mention *up* after the ifconfig command.

Thanks a lot Ciccio for poiting it out there
 
Old 09-09-2004, 06:30 PM   #7
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 30
Excellent, thanks a bunch
 
  


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
Script to check connection (and restart network if down) mac_phil Linux - Networking 10 01-06-2010 05:19 AM
wireless connection requires network restart bbcar Linux - Wireless Networking 1 11-21-2005 02:02 AM
Network not accessible after boot; OK after network restart chriswei Linux - Networking 5 09-22-2004 10:16 PM
Cron job to check/restart network connection? mac_phil Linux - Networking 6 09-01-2004 01:51 PM
How to restart network connection satimis Debian 2 01-12-2004 02:30 AM


All times are GMT -5. The time now is 06:19 AM.

Main Menu
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