Professional Web Applications Themes

ifconfig and dhcp - Sun Solaris

What is the command using ifconfig to determine whether the network interface is controlled by DHCP or not?...

  1. #1

    Default ifconfig and dhcp

    What is the command using ifconfig to determine whether the network
    interface is controlled by DHCP or not?
    DeborahUTD Guest

  2. #2

    Default Re: ifconfig and dhcp

    com (DeborahUTD) writes: 

    From 'man ifconfig'
    ..
    ..
    ..

    /sbin/ifconfig interface { auto-dhcp | dhcp } [ primary ]
    [ wait seconds ] drop | extend | inform | ping |
    release | start | status

    /usr/sbin/ifconfig interface { auto-dhcp | dhcp } [ pri-
    mary ] [ wait seconds ] drop | extend | inform |
    ping | release | start | status
    ..
    ..
    ..

    DHCP Configuration
    The third and fourth forms of this command are used to con-
    trol the Dynamic Host Configuration Protocol ("DHCP") confi-
    guring of the interface. DHCP is only available on inter-
    faces for which the address family is inet. In this mode,
    ifconfig is used to control operation of dhcpagent(1M), the
    DHCP client daemon. Once an interface is placed under DHCP
    control by using the start operand, ifconfig should not, in
    normal operation, be used to modify the address or charac-
    teristics of the interface. If the address of an interface
    under DHCP is changed, dhcpagent will remove the interface
    from its control.


    --
    "The road to Paradise is through Intercourse."
    The uk.transport FAQ; http://www.huge.org.uk/transport/FAQ.html
    [email me at huge [at] huge [dot] org [dot] uk]


    Huge Guest

  3. #3

    Default Re: ifconfig and dhcp

    com (DeborahUTD) wrote in message news:<google.com>... 



    ps -ef | grep dhcpagent | grep -v grep

    If its running dhcpagent it might be a dhcp client.

    By default DHCP is disabled in solaris. Check for /etc/dhcp.interface_name
    interface_name can be either hme0,hme1 or qfe0 depending on what your box
    is.
    Nicole Guest

  4. #4

    Default Re: ifconfig and dhcp

    DeborahUTD wrote:
     

    "ifconfig -a | grep -w DHCP". It's one of the flags.

    If you want more information about the state of DHCP on one of the
    interfaces (not "the network interface, by the way -- there can be
    more than one), you can do "ifconfig wxyz0 dhcp status", where
    "wxyz0" is your interface name/instance.

    - Logan

    Logan Guest

Similar Threads

  1. Replies: 2
    Last Post: February 17th, 04:09 PM
  2. ifconfig
    By Gert in forum FreeBSD
    Replies: 12
    Last Post: March 31st, 02:24 PM
  3. Replies: 2
    Last Post: August 13th, 04:11 AM
  4. ifconfig ?? ?
    By lucas in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: October 27th, 04:01 PM

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