Op 9-9-2010 17:06, Ronny Roethof schreef:
> Hi all,
>
> I have a cobbler setup which works great, but also gives a little problem.
> Because I am colocated with several boxes and can not run a dhcp server on 
> the wan side I am stuk with building it on the lan side.
>
> Here the problem exists, because when I add both nics data into cobbler, the 
> lan side will try to use the wan gateway.
>
> Is there a sollution to this ? I have googled and tried to fix it with 
> scripts but to no avail.
>
> Ronny Roethof
>

To further explain this (as i received some more information requests):
This is the code cobbler generates, and as you can see eth1 (LAN) will 
use the same gateway and eth0, thus will centos in this case come back 
with a 'wrong network' error, and require manual input...
Something I wanted to get rid off in the first place using cobbler :S

# Start of code to match cobbler system interfaces to physical interfaces by 
their mac addresses
#  Start eth1
# Configuring eth1 (00:0C:29:87:59:E0)
if ifconfig -a | grep -i 00:0C:29:87:59:E0
then
   IFNAME=$(ifconfig -a | grep -i '00:0C:29:87:59:E0' | cut -d " " -f 1)
   echo "network --device=$IFNAME --bootproto=static --ip=192.168.1.52 
--netmask=255.255.255.0 --gateway=95.211.111.62 --nameserver=85.17.96.69 
--hostname=vps01.devarea.eu">>  /tmp/pre_install_network_config
fi
#  Start eth0
# Configuring eth0 (00:0C:29:87:59:D6)
if ifconfig -a | grep -i 00:0C:29:87:59:D6
then
   IFNAME=$(ifconfig -a | grep -i '00:0C:29:87:59:D6' | cut -d " " -f 1)
   echo "network --device=$IFNAME --bootproto=static --ip=95.211.111.52 
--netmask=255.255.255.192 --gateway=95.211.111.62 --nameserver=85.17.96.69 
--hostname=vps01.devarea.eu">>  /tmp/pre_install_network_config
fi
# End pre_install_network_config generated code

Ronny
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to