Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
ip info
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: ip info

  1. #1

    ip info

    how do i explain this-

    in winders ipconfig /all

    in linux ???

    i dont just want the ip address given by ifconfig, but the gatewayand the DNS servers as well.

    Anyone?
    Its better to regret something you have done than to regret something you havent done :P

  2. #2

    Re:ip info

    ifconfig --help
    man ifconfig

    these are what you need to read to find out.
    im at school now so i cant check so thats the best i can do.
    AMD Athlon XP 2500+<br />DFI NFII Ultra Infinity(gigabyte sucks)<br />OCZ 2 x 512 PC3200<br />ATI Radeon AIW 9600 PRO<br />16x DVD-Rom (not in use)<br />LG 8x DVD-Burner<br />LG 40x12x40 CD-RW<br />WD 120GB<br />420W PSU<br />Tweaked out case<br />:)

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    304

    Re:ip info

    also look in /etc/resolv.conf for your dns servers

    route will tell you your gateway...
    first field is "Destination"
    second field is "Gateway"
    look for the line that has a destination of "default" and an entry other than "*" in gateway

  4. #4

    Re:ip info

    So something like :

    head /etc/resolve.conf ; route ; ifconfig

    heh!

    Its better to regret something you have done than to regret something you havent done :P

  5. #5

    Re:ip info

    ok wrote a silly script for this - made it executable and stuck it in my path.
    here it is if anyone interested?

    #!/bin/bash
    echo
    echo IP Addresses
    ifconfig
    echo
    echo Default Gateway
    route | grep default
    echo
    echo "Domain Name Servers (DNS)"
    head /etc/resolv.conf | grep nameserver
    Its better to regret something you have done than to regret something you havent done :P

  6. #6

    Re:ip info

    Quote Originally Posted by friskydrifter
    echo Default Gateway
    route | grep default
    route -n|grep 0.0.0.0 will be quicker

    Also, on my box, route lives in /sbin. which isn't in the users $PATH, so mayve /sbin/route is a safer choice
    whatdoyougetwhenyoumultiplysixbynine??

  7. #7

    Re:ip info

    Quote Originally Posted by Omoshiroi
    ifconfig --help
    man ifconfig
    i dont just want the ip address given by ifconfig, but the gatewayand the DNS servers as well.

    mmmhuh?
    whatdoyougetwhenyoumultiplysixbynine??

  8. #8

    Re:ip info

    i dont know too much about networking, but i thought there may be a option somewhere in there to tell you, thats why i put that. god soo critical you are.
    AMD Athlon XP 2500+<br />DFI NFII Ultra Infinity(gigabyte sucks)<br />OCZ 2 x 512 PC3200<br />ATI Radeon AIW 9600 PRO<br />16x DVD-Rom (not in use)<br />LG 8x DVD-Burner<br />LG 40x12x40 CD-RW<br />WD 120GB<br />420W PSU<br />Tweaked out case<br />:)

  9. #9

    Re:ip info

    I was thinking more along the lines of:
    he said "i don't want to use what ifcongif shows"
    that seemed to indicate to me that all the options for ifcongif had been looked through

    Alastair
    whatdoyougetwhenyoumultiplysixbynine??

  10. #10

    Re:ip info

    Spell Alastairs name incorrectly in irc, he loves that! hehe.
    Omo, i know what a man page is.
    'Pad yer posts here' is a better place to up your posts .

    And Alastair its ifconfig not ifcongif ya picky bugger ;D

    I'll prolly get shot now for being cheeky.
    Mahahaha 'evil grin'

    <Frisky runs and hides quickly>
    Its better to regret something you have done than to regret something you havent done :P

Similar Threads

  1. Looking for info about X-Rumer software !
    By Adverts in forum Windows - General Topics
    Replies: 0
    Last Post: 12-12-2006, 05:45 AM
  2. ccnp info
    By iam_khan in forum Announcements and Suggestions
    Replies: 0
    Last Post: 09-19-2006, 06:57 AM
  3. ccie info
    By reenu in forum Windows - General Topics
    Replies: 1
    Last Post: 07-06-2006, 09:45 AM
  4. Where Do You Get Your Info???
    By beezlebubsbum in forum General Chat
    Replies: 6
    Last Post: 06-10-2004, 09:32 PM
  5. WTF? webmin gives me NT IIS info?
    By popcorn in forum Linux - Hardware, Networking & Security
    Replies: 6
    Last Post: 01-22-2002, 11:47 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
  •