News Feed

 

What’s my Gateway?

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

The Free Technology Academy (FTA) has released excellent book called "The GNU/Linux operating system", the main contents are related with system administration. You will learn how to install and configure several computer services, and how to optimise and synchronise the resources using GNU/Linux.

Read more: Download of the day: GNU/Linux Advanced Administration PDF Book


Copyright © nixCraft. All Rights Reserved.


10 Greatest Open Source Software Of 2009

These are full-featured cross-platform softwares, free as in beer and speech. Vivek Gite picks his best open source software of 2009.

Read more: 10 Greatest Open Source Software Of 2009


Copyright © nixCraft. All Rights Reserved.


DistroWatch Weekly, Issue 340

This week in DistroWatch Weekly: Interview: Kris Moore, PC-BSD News: FreeBSD past and present, Fedora newbie guide, interview with Ubuntu's Jane Silber, end of Kongoni Questions and answers: Backups Released last week: Linux Mint 8 "KDE", Gibraltar Firewall 3.0 Upcoming releases: FreeBSD 7.3-RC1, openSUSE 11.3 Milestone 2 Donations:....


Development Release: Frugalware Linux 1.2 RC1

Miklós Vajna has announced the availability of the first release candidate for Frugalware Linux 1.2: "The Frugalware developer team is pleased to announce the immediate availability of Frugalware 1.2rc1, the first candidate of the upcoming 1.2 stable release. A short and incomplete list of changes since 1.2pre2: we....


Oracle Adds SOA Depth with AmberPoint Deal

The software giant shows it's not standing pat after acquiring the Oakland, Calif.-based provider of service-oriented architecture management applications.

Cisco Aims to Simplify Datacenter Migrations

Networking giant rolls out Overlay Transport Virtualization system to enable virtual datacenter migrations, while improving load balancing and disaster-recovery operations.

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 enrichmentPress TV
Iran begins higher uranium enrichmentTimes Online
Iran begins enriching 20% nuclear fuelHa'aretz
Washington Post -Wall Street Journal -Telegraph.co.uk
all 2,363 news articles »

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 fairWashington Post
For Kremlin, an Election in Ukraine Cuts Two WaysNew York Times
New Ukraine leader may still drive hard bargain on gasReuters
Wall Street Journal -Los Angeles Times -The Guardian
all 2,928 news articles »

©2009 BLM Services


7204