Network configuration is used to connect a single SuSE Linux workstation to an Ethernet-based LAN or to configure dial-up connection. More complex configuration (multiple network cards, routing, etc.) is also provided. With this module it's possible to configure and setup Ethernet Controllers and Token-Ring Controllers.
In the networking section, when this option is set to true (default is false, this option is available since openSUSE 11.2 but not SLES11):
<keep_install_network config:type="boolean">true</keep_install_network>
YaST will keep network settings created during installation (via Linuxrc) and/or merge it with network settings from the AutoYaST profile (if these are defined). AutoYaST settings have higher priority than already present configuration files. YaST will write ifcfg-* files from profile without removing old ones. If there is none (or empty) dns and routing section, YaST will keep already present values. Otherwise settings from the profile will be applied.
To configure network settings and activate networking automatically, one global resource is used to store the whole network configuration.
Example 4.19. Network configuration
..... <networking> <dns> <dhcp_hostname config:type="boolean">true</dhcp_hostname> <dhcp_resolv config:type="boolean">true</dhcp_resolv> <domain>local</domain> <hostname>linux</hostname> </dns> <interfaces config:type="list"> <interface> <bootproto>dhcp</bootproto> <device>eth0</device> <startmode>onboot</startmode> </interface> </interfaces> <routing> <ip_forward config:type="boolean">false</ip_forward> <routes config:type="list"> <route> <destination>default</destination> <device>-</device> <gateway>192.168.1.240</gateway> <netmask>-</netmask> </route> </routes> </routing> <modules config:type="list"> <module_entry> <device>eth0</device> <module>e100</module> <options></options> </module_entry> </modules> </networking> ....
Configure your Internet proxy (caching) settings using this resource.
HTTP proxy is the name of the proxy server for your access to the world wide web (WWW). FTP proxy is the name of the proxy server for your access to the file transfer services (FTP). No proxy domains is a list of domains for which the requests should be done directly without caching.
If you are using a proxy server with authorization, fill in Proxy user name and Proxy password.
Example 4.20. Netwrok configuration: Proxy
<?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <proxy> <enabled config:type="boolean">true</enabled> <ftp_proxy>http://192.168.1.240:3128</ftp_proxy> <http_proxy>http://192.168.1.240:3128</http_proxy> <no_proxy>localhost</no_proxy> <proxy_password>testpw</proxy_password> <proxy_user>testuser</proxy_user> </proxy> </profile>
The profile has elements to specify which superserver should be used (netd_service), whether it should be enabled (netd_status) and how the services should be configured (netd_conf).
A service description element has conceptually two parts: key and non-key. When writing the configuration, services are matched using the key fields and to the matching service, non-key fields are applied. If no service matches, it is created. If more services match, a warning is reported. The key fields are script, service, protocol and server.
Service and protocol are matched literally. script is the base name
of the config file: usually a file in /etc/xinetd.d
, for example "echo-udp",
or "inetd.conf". For compatibility with 8.2, server is matched more
loosely: if it is /usr/sbin/tcpd
, the real server name is taken from
server_args. After that, the basename of the first
whitespace-sparated word is taken and these values are compared.
Example 4.21. Inetd Example
<profile> ... <inetd> <netd_service config:type="symbol">xinetd</netd_service> <netd_status config:type="integer">0</netd_status> <netd_conf config:type="list"> <conf> <script>imap</script> <service>pop3</service> <enabled config:type="boolean">true</enabled> </conf> <conf> <server>in.ftpd</server> <server_args>-A</server_args> <enabled config:type="boolean">true</enabled> </conf> <conf> <service>daytime</service> <protocol>tcp</protocol> </conf> .... <conf>...</conf> </netd_conf> </inetd> ... </profile>