VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: restart nic  (Read 1884 times)

ghartl1

  • Vectorite
  • ***
  • Posts: 379
restart nic
« on: July 21, 2007, 03:38:19 pm »

hi,

i use soho 5.8, and have one active nic..

please can you give me theexact syntax, so the system can reread the settings of the nic(e.g.after manual configuration of the nic)

/etc/rc.d/rc.inet1 restart
                rc.inet2 restart
                rc.inetd restart..hmmm

imho with rc.inet1.conf you can configure by hand your connection(and is written in rc.inet1)

rc.inet2 starts the services of the nic??not sure now..but in this file i do have the exact settings of my nic too(gateway,ip,subnetmask..)

some lines in there..
This file is supposed to be created by vinetadd
 and modified by vinetset...never heard o them

so at last rc.inetd(i take it that inetd.conf is responsible for thisscript)i read that is the bsd internetdamon...actually i do hav all lines in inetd.conf deaktivated..no need to offer something to the outer world


so can somebody fill me in...upmost thing would be the restart-command of the nic

thanks for your time in advance..i appreciate this..and the friendly forum and the distro for sure

greets günter
« Last Edit: July 21, 2007, 03:40:44 pm by ghartl1 »
Logged

bigpaws

  • Vectorian
  • ****
  • Posts: 1869
Re: restart nic
« Reply #1 on: July 21, 2007, 06:15:02 pm »

If you are using dhcp then dhcpcd -k
then ifconfig eth0 down
ifconfig eth0 up
dhcpcd eth0

Bigpaws
Logged

Joe1962

  • Administrator
  • Vectorian
  • *****
  • Posts: 2499
    • Joe1962's Website
Re: restart nic
« Reply #2 on: July 21, 2007, 08:26:16 pm »

Or if is an ethernet connection and you can reach the plug easily, just unplug it, wait a few seconds (depends on the ifplugd config, but 10 should be plenty) and plug in again. That's what I do... ;D
Logged
O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10

ghartl1

  • Vectorite
  • ***
  • Posts: 379
Re: restart nic
« Reply #3 on: July 23, 2007, 03:07:58 am »

i dont use dhcp..have a static ip

so the syntax would be then

ifconfig eth0 down
ifconfig eth0 up

greets günter
Logged