From: Rahul on
Rahul <nospam(a)nospam.invalid> wrote in
news:Xns9DA7D37D7FF976650A1FC0D7811DDBC81(a)85.214.73.210:

> Solved! You saved my day! :-)
>
> ipmitool lan set 1 defgw ipaddr 172.16.0.3
>
> That works!! I'd never have figured this out by myself! Thanks again
> for all the useful tips!
>

Another interesting observation:

I do need the manual route command for sure:

route add -net 172.16.0.0 netmask 255.255.0.0 dev eth0

THe nice thing is that this can either be added on the controlling host or
I can just add it on the master server that is designated as the default
gateway for the whole subnet. In either case though the arp looks the same.

Is there a way to find how a certain IP got resolved? i.e. via a local
routing table or by sending to a default gateway which then knew the
correct route. Just out of curiosity.

--
Rahul
From: Pascal Hambourg on
Hello,

Rahul a �crit :
>>
>> ipmitool lan set 1 defgw ipaddr 172.16.0.3
>>
>> That works!! I'd never have figured this out by myself! Thanks again
>> for all the useful tips!

You could also add an address in the 172.16.x.x subnet on the remote
host instead of adding just the route.

> Is there a way to find how a certain IP got resolved? i.e. via a local
> routing table or by sending to a default gateway which then knew the
> correct route. Just out of curiosity.

ip route get <address>
From: Rahul on
Pascal Hambourg <boite-a-spam(a)plouf.fr.eu.org> wrote in news:i0hhet$2453$1
@saria.nerim.net:

> You could also add an address in the 172.16.x.x subnet on the remote
> host instead of adding just the route.

Thanks Pascal. I'm not exactly sure how to do this. I mean the remote host
has just a single eth adapter and it is currently assigned a 10.0.x.x ip
via dhcp based on it's MAC address (in a way it's a dhcp assigned address
that never changes).

Can I assign two IP addresses to the same MAC?


--
Rahul
From: Pascal Hambourg on
Rahul a �crit :
> Pascal Hambourg <boite-a-spam(a)plouf.fr.eu.org> wrote in news:i0hhet$2453$1
> @saria.nerim.net:
>
>> You could also add an address in the 172.16.x.x subnet on the remote
>> host instead of adding just the route.

Yet another way would be to add a direct route to the 10.0.x.x subnet on
the BMC interface.

> Thanks Pascal. I'm not exactly sure how to do this. I mean the remote host
> has just a single eth adapter and it is currently assigned a 10.0.x.x ip
> via dhcp based on it's MAC address (in a way it's a dhcp assigned address
> that never changes).
>
> Can I assign two IP addresses to the same MAC?

Sure.
Either create an IP alias with the (not so good) old ifconfig :

# ifconfig ethX:whatever 172.16.x.x netmask ...

or use the more modern ip tool :

# ip addr add 172.16.x.x/<prefixlen> broadcast + dev ethX

(Note that ifconfig won't show the second address unless you add 'label
ethX:whatever' to the above command, then ifconfig will show it as an
alias. 'ip addr show' does not care about this.)
From: Rahul on
Pascal Hambourg <boite-a-spam(a)plouf.fr.eu.org> wrote in news:i0j2op$cge$1
@saria.nerim.net:

>>> You could also add an address in the 172.16.x.x subnet on the remote
>>> host instead of adding just the route.
>
> Yet another way would be to add a direct route to the 10.0.x.x subnet on
> the BMC interface.

The problem is that the BMC interface seems quite primitive and is limited
in its command set. I'm not sure how it handles routing tables and if it
exposes that part of its interface to me (like a regulare route command)

I'm looking at my ipmitool manual but haven't found anything like that yet
(http://ipmitool.sourceforge.net/manpage.html)



--
Rahul