There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
bringing nic back up

Reply  
Thread Tools
snowdog's Avatar
Member with 72 posts.
 
Join Date: Apr 2003
Location: Edmonton, AB, Canada
10-May-2003, 11:33 PM #1
bringing nic back up
I'm in the habit of leaving my computer on all the time (except in thunderstorms, no UPS), but what I'd like to do is disable the nic while I'm away (I'm already behind a physical firewall). What I've tried is '#ifconfig eth0 down' to disable which works fine. Now when I enter '#ifconfig eth0 up' nothing happens (had to reboot to bring it back up). Anyone have an idea about this? Not too sure what other options I should add to that '...up' command. Would restarting an init script work (maybe DHCP)? I'm running Mandrake 9.1.
__________________
"One OS to rule them all, one Passport to find them,
DRM to bring them all and with the EULA bind them,
In the Land of Redmond, where the Shadows lie." -- Unknown
snowdog's Avatar
Member with 72 posts.
 
Join Date: Apr 2003
Location: Edmonton, AB, Canada
10-May-2003, 11:42 PM #2
Hate replying to myself, but I'm also running gkrellm. Not sure if that would get in the way of anything. Thanks for reading these posts guys.
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
11-May-2003, 06:28 AM #3
If you use DHCP you could try:
ifconfig eth0 down
dhcpcd eth0

Other than that,I guess it would take a reboot to restart the nic.
I use a cable modem with a stand-by switch so I just use that to dis-connect from the clouds .
My box runs 24/7 also.
HTH
lynch
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands
snowdog's Avatar
Member with 72 posts.
 
Join Date: Apr 2003
Location: Edmonton, AB, Canada
11-May-2003, 01:14 PM #4
Thx for responding lynch. I did some digging on Google and found this... http://lwn.net/Alerts/19741/. To restart the network just enter (as root) '#service network restart'. I gave it a test run, entered '#ifconfig eth0 down', then brought it back up with '#service network restart', no prob!
__________________
"One OS to rule them all, one Passport to find them,
DRM to bring them all and with the EULA bind them,
In the Land of Redmond, where the Shadows lie." -- Unknown
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
11-May-2003, 02:34 PM #5
That's great.Glad you found a solution.Thanks for providing the link,too.
lynch
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:07 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.