* Amedee Van Gasse [Nov 12. 2008 10:54]:
I have added a static route that sends all traffic for a certain net
block over the wlan interface.
route add -net xxx.xxx.xxx.0 netmask 255.255.255.0 gw 192.168.1.1 dev
wlan0
[snip]
May I recommend 'ip' from the iproute2 package? route and ifconfig have
been deprecated since kernel 2.2 by the superiour 'ip' command.
Yes of course you may recommend that.
It's just that most pages on the web still refer to route and ifconfig.
But with my Cisco experience, it feels more comfortable to use ip. I
wasn't fully aware it even existed, and I certainly didn't know that
route&ifconfig are deprecated.
One example of deprecation is the addition of several IP adresses to one
interface. Here I add 10.42.42.42 for eth0, and as the example shows
ifconfig will not show it. So people using ifconfig might never find
additional IP addresses added to an interface.
blitz:~ # ip addr add 10.42.42.42 dev eth0
blitz:~ # ip addr list eth0
2: eth0: mtu 1500 qdisc
pfifo_fast qlen 1000
link/ether 00:07:e9:83:c5:f1 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.200/24 brd 10.0.2.255 scope global eth0
inet 10.42.42.42/32 scope global eth0
inet6 fe80::207:e9ff:fe83:c5f1/64 scope link
valid_lft forever preferred_lft forever
blitz:~ # ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:07:E9:83:C5:F1
inet addr:10.0.2.200 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::207:e9ff:fe83:c5f1/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55559240 errors:0 dropped:0 overruns:2627 frame:2627
TX packets:11740967 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:267695005 (255.2 Mb) TX bytes:2188450034 (2087.0 Mb)
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org