News Feed
In Windows, typing
IPCONFIG /ALL
produces:
Windows IP Configuration
Host Name . . . . . . . . . . . . : host-name
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : domain.local
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit Ethernet NIC
Physical Address. . . . . . . . . : 00-24-XX-XX-XX-XX
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 64.XXX.XXX.220
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 64.XXX.XXX.1
DHCP Server . . . . . . . . . . . : 209.XXX.XXX.135
DNS Servers . . . . . . . . . . . : 208.67.222.222 208.67.220.220
Lease Obtained. . . . . . . . . . : Thursday, January 07, 2010 12:42:26 PM
Lease Expires . . . . . . . . . . : Thursday, January 07, 2010 8:42:26 PM
You can plainly see all the information you need to know. How do you do that in Linux? Well, the answer depends on which distro you are using and which packages you are using, but here are some answers:
“route -nee” produces (Some fields have been chopped off):
Kernel IP routing table
Destination Gateway Genmask
192.168.100.0 0.0.0.0 255.255.255.0
69.XXX.XXX.0 0.0.0.0 255.255.255.0
169.254.0.0 0.0.0.0 255.255.0.0
0.0.0.0 69.XXX.XXX.1 0.0.0.0
“ip route show” produces:
192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.101
69.XXX.XXX.0/24 dev eth1 proto kernel scope link src 69.XXX.XXX.225
169.254.0.0/16 dev eth1 scope link metric 1000
default via 69.XXX.XXX.1 dev eth1 metric 100
“ifconfig” produces:
eth0 Link encap:Ethernet HWaddr 00:d0:b7:3c:dd:4f
inet addr:192.168.100.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2d0:b7ff:fe3c:dd4f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18365 errors:0 dropped:0 overruns:0 frame:0
TX packets:15981 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1987703 (1.9 MB) TX bytes:11111362 (11.1 MB)
eth1 Link encap:Ethernet HWaddr 00:1a:4d:94:75:43
inet addr:69.XXX.XXX.225 Bcast:69.XXX.XXX.255 Mask:255.255.255.0
inet6 addr: fe80::21a:4dff:fe94:7543/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59590 errors:0 dropped:0 overruns:0 frame:0
TX packets:11997 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11600972 (11.6 MB) TX bytes:3977507 (3.9 MB)
Interrupt:23 Base address:0×6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4709 errors:0 dropped:0 overruns:0 frame:0
TX packets:4709 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1042664 (1.0 MB) TX bytes:1042664 (1.0 MB)
“cat /etc/resolv.conf” produces:
#Open DNS
nameserver 208.67.222.222
#Google DNS
8.8.8.8
#Open DNS
nameserver 208.67.220.220
#Google DNS
8.8.4.4
That should give you the information you need.
Click here for comments or to leave a reply
Download of the day: GNU/Linux Advanced Administration PDF Book
Read more: Download of the day: GNU/Linux Advanced Administration PDF Book
10 Greatest Open Source Software Of 2009
Read more: 10 Greatest Open Source Software Of 2009
Development Release: Frugalware Linux 1.2 RC1
Oracle Adds SOA Depth with AmberPoint Deal
Cisco Aims to Simplify Datacenter Migrations
Iran plans to build 10 more nuclear plants - Los Angeles Times
![]() Reuters | Iran plans to build 10 more nuclear plants Los Angeles Times Despite Western threats of sanctions, Tehran says it will build more nuclear fuel plants and beef up its military. Iranian President Mahmoud Ahmadinejad speaks at a ceremony in Tehran. The flurry of pronouncements hailing national achievements comes ... Iran starts higher-grade uranium enrichment Iran begins higher uranium enrichment Iran begins enriching 20% nuclear fuel |
Eyes on Ukraine PM to contest poll results or quit - BBC News
![]() BBC News | Eyes on Ukraine PM to contest poll results or quit BBC News Ukraine is waiting for Prime Minister Yulia Tymoshenko to either contest results from Sunday's presidential election, or accept defeat and quit. Pro-Moscow opposition leader Viktor Yanukovych appears to have narrowly won the poll, which monitors have ... World Digest: International observers say Ukrainian election was free and fair For Kremlin, an Election in Ukraine Cuts Two Ways New Ukraine leader may still drive hard bargain on gas |
©2009 BLM Services
7204