Specifications
IPv6
Description
SIOS has migrated to the use of theipcommand and away from theifconfigcommand.
Because of this change,customers with external scripts areadvised to make a similar change.
Instead of issuing theifconfigcommand and parsing the output looking for a specific interface,
scripts shouldinstead use"ip -o addr show"and parse the output looking for lines
thatcontain the words "inet" and "secondary".
# ip -o addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state
UNKNOWN
\ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
1: lo inet 127.0.0.1/8 scope host lo
1: lo inet6 ::1/128 scope host
\ valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_
fast state UP qlen 1000
\ link/ether d2:05:de:4f:a2:e6 brd ff:ff:ff:ff:ff:ff
2: eth0 inet 172.17.100.77/22 brd 172.17.103.255 scope global
eth0
2: eth0 inet 172.17.100.79/22 scope global secondary eth0
2: eth0 inet 172.17.100.80/22 scope global secondary eth0
2: eth0 inet6 2001:5c0:110e:3364::1:2/64 scope global
\ valid_lft forever preferred_lft forever
2: eth0 inet6 2001:5c0:110e:3300:d005:deff:fe4f:a2e6/64 scope
global dynamic
\ valid_lft 86393sec preferred_lft 14393sec
2: eth0 inet6 fe80::d005:deff:fe4f:a2e6/64 scope link
\ valid_lft forever preferred_lft forever
So for the above output from theipcommand, the following lines contain virtual IP addresses for
the eth0 interface:
2: eth0 inet 172.17.100.79/22 scope global secondary eth0
2: eth0 inet 172.17.100.80/22 scope global secondary eth0
SteelEye Protection Suite for Linux235