strange network problems

Paul Gear paul at libertysys.com.au
Wed Apr 23 13:53:37 BST 2008


Sebastian Spiess wrote:
> Cary Bielenberg wrote:
>> I have seen Ubuntu not add the default gateway in DHCP on some DSL 
>> routers, does it show from ifconfig?
>> ...
> I am not 100% sure what you mean with __default__ gateway.

The right way to show the default gateway is not ifconfig, but netstat:

root at shelah:~# ifconfig
...
wlan0     Link encap:Ethernet  HWaddr 00:1D:E0:79:94:2B
          inet addr:10.199.254.130  Bcast:10.199.254.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:e0ff:fe79:942b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13150 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12706 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8910405 (8.4 MB)  TX bytes:2332531 (2.2 MB)
...
root at shelah:~# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
10.199.254.0    0.0.0.0         255.255.255.0   U         0 0          0
wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
wlan0
0.0.0.0         10.199.254.1    0.0.0.0         UG        0 0          0
wlan0

The default gateway is the one with the destination of 0.0.0.0.  It is
the node where your outgoing packets will go if there is no closer
matching route.  In the list above, any traffic destined for addresses
other other than 10.199.254.0/24 or 169.254.0.0/16 will go via 10.199.254.1.

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paul.vcf
Type: text/x-vcard
Size: 270 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-au/attachments/20080423/0aa9636f/attachment-0002.vcf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4633 bytes
Desc: S/MIME Cryptographic Signature
Url : https://lists.ubuntu.com/archives/ubuntu-au/attachments/20080423/0aa9636f/attachment-0002.bin 


More information about the ubuntu-au mailing list