Sebastian Reitenbach wrote:
> Hi,
>
> I found this snippet in the IPaddr script:
>
> find_interface_bsd() {
> #$IFCONFIG $IFCONFIG_A_OPT | grep "inet.*[: ]$OCF_RESKEY_ip "
> $IFCONFIG | grep "$ipaddr" -B20 | grep "UP," | tail -n 1 | cut -d ":" -f
> 1
> }
>
> #
> # Find out which alias serves the given IP address
> # The argument is an IP address, and its output
> # is an aliased interface name (e.g., "eth0:0").
> #
>
> To see the aliases of an interface shown by ifconfig, you have to add the
> parameter -A to ifconfig:
>
> but running the command gives me:
> ifconfig -A | grep 213.239.221.55 -B20 | grep "UP," | tail -n 1 |
> cut -d ":" -f 1
>
> but then it still gives me:
> fxp0
>
> because there are no fxp0:0 or eth0:0 alias interfaces on OpenBSD. But when
> I take a look into the delete_interface function in the same script, it
> looks like it will work.
>
> here an example output of ifconfig
>
> ifconfig -A
> other interfaces ...
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:02:b3:88:e6:41
> groups: egress
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet 21.39.21.41 netmask 0xffffffe0 broadcast 21.39.21.63
> inet6 fe80::202:b3ff:fe88:e641%fxp0 prefixlen 64 scopeid 0x1
> inet 21.39.21.55 netmask 0xffffff00 broadcast 21.39.21.255
> other interfaces...
>
> the line
> inet 21.39.21.55 netmask 0xffffff00 broadcast 21.39.21.255
> defines the alias IP address. This line will not show up, without the -A
> parameter.
>
> well, I only tried to run the command manually on the commandline not from
> within linux-ha, but as far as I can see, the script would not find the ip
> address of the interface.
Hi Sebastian,
Could you make up bugzillas for these various OpenBSD bugs you run across?
Having several would be easier to manage than one with lots of symptoms
in it.
Thanks for your persistence in getting it to go on OpenBSD!
--
Alan Robertson <[EMAIL PROTECTED]>
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems