On Fri, 29 Feb 2008, John R Pierce wrote:
ip also has a one-line output mechanism:
ip -o link show
...
I do wish the mothership would update its standard network configuration
scripts to use ip(8) rather than the legacy ifconfig(8). Rather than using
the legacy eth0:1 style interface aliases, allow a single
/etc/sysconfig/network-scripts/ifcfg-eth0 to contain a list of aliases which
get set with
ip addr add ......
ditto optional static routes could be set with
ip route add ...
The great mothership fulfilled your wishes retrospectively if you use
route-eth0 to set your routes :) Eg.
1.2.3.4 via 4.3.2.1
8.4.2.0/24 via 7.5.3.1
would be the same as:
route add -host 1.2.3.4 gw 4.3.2.1
route add -net 8.4.2.0 netmask 255.255.255.0 gw 7.5.3.1
--
-- dag wieers, dag@xxxxxxxxxx, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos