Prev: per packet QoS (DSCP)
Next: SO_BINDTODEVICE
From: Robert Heller on 9 Dec 2008 15:48 At 09 Dec 2008 18:45:26 GMT kmlincoln100(a)hotmail.com (Matthew Lincoln) wrote: > > Assume I am connected to an inhouse-LAN and my local Linux system has a dynamic IP > which is assigned by a DHCP server at the start of the session. > > How do I find out my current, dynamic IP? > > Matthew Examine the output of ifconfig: gollum.deepsoft.com% cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller DEVICE=eth0 ONBOOT=yes USERCTL=yes BOOTPROTO=dhcp HWADDR=00:09:6B:FA:FE:07 gollum.deepsoft.com% ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:09:6B:FA:FE:07 inet addr:192.168.250.5 Bcast:192.168.250.255 Mask:255.255.255.0 inet6 addr: fe80::209:6bff:fefa:fe07/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1087887 errors:0 dropped:0 overruns:0 frame:0 TX packets:703380 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1268666510 (1.1 GiB) TX bytes:103970172 (99.1 MiB) > -- Robert Heller -- Get the Deepwoods Software FireFox Toolbar! Deepwoods Software -- Linux Installation and Administration http://www.deepsoft.com/ -- Web Hosting, with CGI and Database heller(a)deepsoft.com -- Contract Programming: C/C++, Tcl/Tk
From: Cork Soaker on 9 Dec 2008 16:02 Matthew Lincoln wrote: > Assume I am connected to an inhouse-LAN and my local Linux system has a dynamic IP > which is assigned by a DHCP server at the start of the session. > > How do I find out my current, dynamic IP? > > Matthew $: ifconfig
From: Tim Greer on 9 Dec 2008 17:01 Matthew Lincoln wrote: > Assume I am connected to an inhouse-LAN and my local Linux system has > a dynamic IP which is assigned by a DHCP server at the start of the > session. > > How do I find out my current, dynamic IP? > > Matthew Are you looking to find out your internal IP on the WAN/LAN, or your external IP (what a site on the Internet would see you connecting from)? Anyway, look at running ifconfig. -- Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc. Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers and Custom Hosting. 24/7 support, 30 day guarantee, secure servers. Industry's most experienced staff! -- Web Hosting With Muscle!
From: b.jeswine on 9 Dec 2008 17:18 In news:otr216-tvm.ln1(a)qqqqq.xs4all.nl, Luuk <luuk(a)invalid.lan> typed: > sudo /sbin/ifconfig "/sbin/ifconfig" with any options is entirely sufficient; no "sudo || su" is required.
From: Allen Kistler on 9 Dec 2008 17:29
Matthew Lincoln wrote: > Assume I am connected to an inhouse-LAN and my local Linux system has a dynamic IP > which is assigned by a DHCP server at the start of the session. > > How do I find out my current, dynamic IP? "ifconfig" or "netstat -e -i" or look in the lease file of dhclient (or whatever dhcp client software you use). RH/Fedora stores it in /var/run/dhclient-<ifname>.lease. YMMV |