[Erp5-users] LiveCD: How-to make network configuration persistent / config.xml

david atlan (PHENO) atlan_d at web.de
Fri Mar 3 16:21:56 CET 2006


Hi,

Sorry to pick up a thread more than a week old, I was stuck doing a few  
other things and finally managed to try out modifying the config.xml in  
following way:

  <connection_type>dhcp</connection_type> <!-- static or dhcp -->
  <network_device>eth0</network_device>

  <ip_address>192.168.242.2</ip_address>
  <netmask>255.255.255.0</netmask>
  <network_address>192.168.242.0</network_address>
  <broadcast_address>192.168.242.255</broadcast_address>
  <gateway>192.168.242.254</gateway>
  <nameservers>192.168.242.254</nameservers> <!-- separated by spaces-->

in a first trial, I suppressed the  
ip_address,netmask,network_address,broadcast_address,gateway and  
nameservers lines and in a second trial I put the numbers given by the  
dhcp. The connection type was set to dhcp.

Both config.xml in /mnt/erp5_cd and /root where modified and
/etc/init.d/erp5cdtool restart
was launched.

When I reboot the machine, I still don't get the PC to connect to the  
Internet (launching dhclient eth0 works), although the config files still  
show my modifications. What am I missing?

Thanks and enjoy the weekend,
david
http://span-tech.com



On Mon, 20 Feb 2006 16:47:54 +0100, Shrenik Bhura  
<shrenik.bhura at intelliant.net> wrote:

> yes
>
> On Mon, 2006-02-20 at 16:21 +0100, david atlan (PHENO) wrote:
>
>> Dear Kevin and SB,
>>
>> I tried
>> ifconfig eth0 up
>> dhclient eth0
>> ping nexedi.com
>>
>> and it worked!
>>
>> I did find a config.xml (see content at the end) but not in:
>> /mnt/erp5_cd/config.xml
>> it was in /root/config.xml
>>
>> Should I edit this xml and copy it to /mnt/erp5_cd ?
>>
>> Kind regards
>>
>> David
>>
>>
>> On Mon, 20 Feb 2006 11:48:54 +0100, Kevin Deldycke <kevin at nexedi.com>
>> wrote:
>>
>> > Le Vendredi 17 Février 2006 18:21, david atlan (PHENO) a écrit :
>> >> Dear Kevin,
>> >>
>> >> it worked fine with deleting the content of /mnt/erp5_cd and ERP5
>> >> starts.
>> >>
>> >> I have a little problem with the configuration of the Internet
>> >> connection:
>> >> the test machine is connected to a router with DHCP server, but it
>> >> doesn't
>> >> take the IP address? Is there anything I can try?
>> >
>> > Just open a konsole and do:
>> >
>> >   ifconfig eth0 up
>> >   dhclient eth0
>> >   ping nexedi.com
>> >
>> > If you can ping nexedi.com, then your NIC is working well. Else, give  
>> us
>> > logs.
>> >
>> > If your pass the previous test, the next thing to do is to make your
>> > configuration persistent. To do that, edit the /mnt/erp5_cd/config.xml
>> > file
>> > then restart the erp5cdtool service ( /etc/init.d/erp5cdtool restart  
>> ).
>> >
>> =======================================================================
>> <erp5>
>> <group id="nexedi">
>> <host id="master">
>> <hostname>erp5</hostname>
>> <domainname>local.domain</domainname>
>> <connection_type>static</connection_type> <!-- static or dhcp -->
>> <network_device>eth0</network_device>
>>
>> <ip_address>192.168.242.2</ip_address>
>> <netmask>255.255.255.0</netmask>
>> <network_address>192.168.242.0</network_address>
>> <broadcast_address>192.168.242.255</broadcast_address>
>> <gateway>192.168.242.254</gateway>
>> <nameservers>192.168.242.254</nameservers> <!-- separated by spaces-->
>>
>> <wlan_wep_key></wlan_wep_key>
>> <wlan_essid></wlan_essid>
>> <wlan_channel></wlan_channel>
>>
>> <cups_network></cups_network>
>> <time_zone>UTC</time_zone> <!-- Look in /usr/share/zoneinfo/ -->
>> <system_language>en_US</system_language> <!-- lang_COUNTRY -->
>>
>> <root_password>erp5root</root_password>
>> <user_password>erp5user</user_password>
>> <zope_password>zope</zope_password>
>> <web_password>erp5web</web_password> <!-- Not used -->
>> </host>
>> </group>
>> </erp5>
>>
>> _______________________________________________
>> Erp5-users mailing list
>> Erp5-users at erp5.org
>> http://erp5.org/mailman/listinfo/erp5-users





More information about the Erp5-users mailing list