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:
[EMAIL PROTECTED]:~# 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)
...
[EMAIL PROTECTED]:~# 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
begin:vcard fn:Paul Gear n:Gear;Paul org:Liberty Systems & Software adr;dom:;;;Birkdale;Q;4159 email;internet:[EMAIL PROTECTED] title:Director tel;work:07 3122 2198 tel;cell:04 3183 7656 x-mozilla-html:FALSE url:http://www.libertysys.com.au/ version:2.1 end:vcard
smime.p7s
Description: S/MIME Cryptographic Signature
-- ubuntu-au mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-au
