Professional Web Applications Themes

ifconfig - FreeBSD

How do you tell a device for example nv0 to be dhcp without using rc.conf ? Also how do you do a ipconfig /renew in freebsd ?...

  1. #1

    Default ifconfig

    How do you tell a device for example nv0 to be dhcp without using rc.conf ?
    Also how do you do a ipconfig /renew in freebsd ?
    Gert Guest

  2. #2

    Default Re: ifconfig

    On Wed, 23 Mar 2005 01:07:47 +0100
    Gert Cuykens <com> wrote:
     

    just by using the line
    dhclient nv0
    in another script or from command-line ?
    albi@scii.nl Guest

  3. #3

    Default Re: ifconfig

    On 2005-03-23 01:07, Gert Cuykens <com> wrote: 

    By manually calling the dhclient(8) utility.
     

    I don't know what an `ipconfig /renew' does, so no idea about this one.

    Giorgos Guest

  4. #4

    Default Re: ifconfig

    On Wed, 23 Mar 2005 02:27:02 +0200, Giorgos Keramidas
    <upatras.gr> wrote: 
    >
    > By manually calling the dhclient(8) utility.

    >
    > I don't know what an `ipconfig /renew' does, so no idea about this one.
    >[/ref]

    thx dhclient works :) I now have inet 0.0.0.0

    How do you tell nv0 to release and renew its dhcp adress ?
    Gert Guest

  5. #5

    Default Re: ifconfig



    Gert Cuykens wrote:
     
    >>By manually calling the dhclient(8) utility.
    >>
    >>
    >> 
    >>I don't know what an `ipconfig /renew' does, so no idea about this one.
    >>
    >>
    >>[/ref]
    >
    >thx dhclient works :) I now have inet 0.0.0.0
    >
    >How do you tell nv0 to release and renew its dhcp adress ?
    >_______________________________________________
    >
    >
    >[/ref]

    man dhclient

    " The client normally doesn't release the current lease as it
    is not
    required by the DHCP protocol. Some cable ISPs require their
    clients
    to notify the server if they wish to release an assigned IP
    address.
    The -r flag explicitly releases the current lease, and once the
    lease
    has been released, the client exits."

    John Guest

  6. #6

    Default ifconfig


    Gert Cuykens writes:
     

    If rc.conf has the lines:

    network_interfaces="lo0 nv0 "
    ifconfig_nv0=""

    rc will look for /etc/start_if.nv0 and - if found - will
    execute the commands therein. A copy of mine (I use de0) is
    appended.


    Robert Huff


    #!/bin/sh -x

    # interface configuration file for RCN DHCP

    rm /var/db/dhclient.leases

    /sbin/dhclient de0
    echo -n $? > /etc/dhc.err
    echo -n "= DHCLIENT exit status" >> /etc/dhc.err

    ifconfig de0
    sleep 3

    # since the rules are already segregated, use that file
    # 20040218 moved to ipfw.master and invoked from rc.conf:rc.firewall=

    # /etc/ipfw.set
    # sleep 3

    natd -f /etc/natd.conf
    Robert Guest

  7. #7

    Default Re: ifconfig for wireless internet

    wow... great ip config syntax...

    thanks! needed that too...

    X----------------
    Robert Kim,
    Wireless Internet Wifi Hotspot Advisor
    http://wireless-internet-broadband-service.com
    https://evdo.sslpowered.com/wifi-hotspot-router.html
    http://evdo-coverage.com http://hsdpa-coverage.com
    2611 S Pacific Coast Highway 101 ste 102
    Cardiff by the Sea CA 92007 : 206 984 0880
     [/ref][/ref]
    Service"(tm) [/ref][/ref]
    ---Shalommmmmmmm--------------------
    ---------------------------------;-)----


    ----- Original Message -----
    From: "Robert Huff" <com>
    To: <org>
    Sent: Tuesday, March 22, 2005 4:52 PM
    Subject: ifconfig

     
    >
    > If rc.conf has the lines:
    >
    > network_interfaces="lo0 nv0 "
    > ifconfig_nv0=""
    >
    > rc will look for /etc/start_if.nv0 and - if found - will
    > execute the commands therein. A copy of mine (I use de0) is
    > appended.
    >
    >
    > Robert Huff
    >
    >
    > #!/bin/sh -x
    >
    > # interface configuration file for RCN DHCP
    >
    > rm /var/db/dhclient.leases
    >
    > /sbin/dhclient de0
    > echo -n $? > /etc/dhc.err
    > echo -n "= DHCLIENT exit status" >> /etc/dhc.err
    >
    > ifconfig de0
    > sleep 3
    >
    > # since the rules are already segregated, use that file
    > # 20040218 moved to ipfw.master and invoked from rc.conf:rc.firewall=
    >
    > # /etc/ipfw.set
    > # sleep 3
    >
    > natd -f /etc/natd.conf
    > _______________________________________________
    > org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to[/ref]
    "org" 

    bob Guest

  8. #8

    Default Re: ifconfig

    On Tue, 22 Mar 2005 19:52:19 -0500, Robert Huff <com> wrote: 

    What does this part do ?
    Gert Guest

  9. #9

    Default Re: ifconfig

    So conclusion if you want to release and renew your ip you do this right ?

    dhclient nv0
    dhclient -r nv0
    dhclient nv0
    Gert Guest

  10. #10

    Default Re: ifconfig

    On Wed, 23 Mar 2005 21:48:11 +0100, Gert Cuykens <com> wrote: 

    never mind it works yahoo :) my nvidia nforce3 NIC AMD64 works :)

    The thing i dont understand is why i can not load the if_nv.ko at boot
    time in the load.conf file ? My pc keeps on rebooting if i do that. I
    have to do everything manualy ?
    Gert Guest

  11. #11

    Default Re: ifconfig

    On Mar 23, 2005, at 4:01 PM, Gert Cuykens wrote: 

    Yes, that is odd. If you can get a crashdump from the system to see
    why it is rebooting, that would certainly help, but without additional
    information, it's not going to be easy to debug the problem...

    --
    -Chuck

    Charles Guest

  12. #12

    Default Re: ifconfig

    On Wed, 23 Mar 2005 16:10:22 -0500, Charles Swiger <com> wrote: 
    >
    > Yes, that is odd. If you can get a crashdump from the system to see
    > why it is rebooting, that would certainly help, but without additional
    > information, it's not going to be easy to debug the problem...[/ref]

    where do i need to look for a crashdump ? It reboots just before
    displaying the bsd boot menu what is even stranger because the kernel
    and modules only gets loaded after the boot menu right ? I had to fix
    it with bsd cd2 and edit the /boot/load.conf ?

    Can somebody explain to me what happens after bootmanager and before
    boot menu ? That has to do with load.conf ? Cant be much right :)
    Gert Guest

  13. #13

    Default ifconfig

    Hi all,

    Is there a way to ask infconfig to report what the virtual aliase names are
    when ./ifconfig is run? i.e. the alias names like em0:0, em0:1 em0:3 ...
    that are assigned to them in rc.conf?

    -Grant


    Grant Guest

Similar Threads

  1. ifconfig ?? ?
    By lucas in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: October 27th, 04:01 PM
  2. ifconfig and HACMP
    By St. in forum AIX
    Replies: 2
    Last Post: October 19th, 11:04 PM
  3. ifconfig without being root
    By Sylvain masnada in forum PERL Beginners
    Replies: 1
    Last Post: August 13th, 06:25 PM
  4. Problem with ifconfig
    By TR in forum Debian
    Replies: 0
    Last Post: July 31st, 09:20 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