Professional Web Applications Themes

Restart Networks - FreeBSD

Hello all, On linux variants, you can run a command like: /etc/init.d/network restart that will restart network serverices ie, reinitialize ifconfig setup, reload IPs for a local NIC. Does anyone know if there is a similar command or command set in FreeBSD? -GRant...

  1. #1

    Default Restart Networks

    Hello all,

    On linux variants, you can run a command like:
    /etc/init.d/network restart
    that will restart network serverices ie, reinitialize ifconfig setup, reload
    IPs for a local NIC.

    Does anyone know if there is a similar command or command set in FreeBSD?


    -GRant


    Grant Guest

  2. #2

    Default Re: Restart Networks

    On Wed, 30 Mar 2005 19:27:06 -0500, Grant Peel <com> wrote: 

    Well I don't remember the last time I needed to do that but try
    # /etc/netstart

    --
    Kind regards
    Abu Khaled
    Abu Guest

  3. #3

    Default Re: Restart Networks

    On Thursday 31 March 2005 02:27, Grant Peel wrote: 

    Assuming you have 5.X: /etc/rc.d/netif

    HTH,

    Dan
    Danny Guest

  4. #4

    Default Re: Restart Networks

     [/ref]

    You can also try just restarting the interface. On my laptop, for
    example, running FreeBSD 5.3, I re-start the ndis based network
    interface thusly:

    /etc/rc.d/ndis restart

    where that script is:

    ----------------------------------------------------------------------
    #!/bin/sh
    # By Mario S. 2004

    # PROVIDE: ndis
    # KEYWORD: FreeBSD

    .. /etc/rc.subr

    name="ndis"
    start_precmd=""
    stop_precmd=""
    start_cmd="ndis_yastart"
    stop_cmd="ndis_yastop"


    ndis_yastart()
    {
    echo "Starting NDIS network driver: "
    sysctl dev.ndis.0.SSID="myssid"
    ifconfig ndis0 192.168.1.234
    route add default 192.168.1.1
    echo "Done"
    }

    ndis_yastop()
    {
    ifconfig ndis0 down
    kldunload if_ndis
    killall dhclient
    }

    load_rc_config $name
    run_rc_command "$1"
    ----------------------------------------------------------------------
    Tom Guest

Similar Threads

  1. connecting two networks
    By brad in forum Windows Networking
    Replies: 5
    Last Post: August 14th, 06:33 AM
  2. Two networks via one PC??
    By yellowpike in forum Windows Networking
    Replies: 3
    Last Post: July 7th, 09:10 PM
  3. Keeps trying to connect to other networks
    By Luke Hendrickson in forum Windows Networking
    Replies: 0
    Last Post: June 30th, 09:14 PM
  4. networks
    By Blip! in forum Mac Applications & Software
    Replies: 0
    Last Post: June 25th, 02:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139