Created at:

Slackware configuration

Set up hostname and domainname

The full hostname (with domain name), separated by period (.), is specified in the /etc/HOSTNAME file. The domainname can be set to /etc/defaultdomain.

Adding default route

Linux route command syntax differs a bit from BSD. To add a default route, type the command::

    route add default gw $gateway_host

Network configuration

Network configuration in Slackware is made by the netconfig program. But you can also edit manually the configuration files: There are two scripts: /etc/rc.d/rc.inet1 and /etc/rc.d/rc.inet2. /etc/rc.d/rc.inet1.conf is the file that should be edit to configure the network (rc.inet1 and rc.inet2 read this file to make the configuration).

Both static and DHCP configuration should be put there. This scripts, if not installed by default, are in the slackware/n/network-scripts*.tgz file in the first Slackware CD.

The rc.inet2 script starts the sshd daemon if it is installed.

To set an alias, just insert another section (don't forget to insert the IFNAME variable, which is not there by default):

    # Config information for eth0:0:

google groups message

rc.inet1.conf example

To restart Slackware network, just type:

    # cd /etc/rc.d/
    # ./rc.inet1 restart

linuxforums thread

Slackbook - Network Configuration

Configuring NIS client

Add the server in /etc/yp.conf::


Then start the portmap daemon::

    chmod 755 /etc/rc.d/rc.rpc
    /etc/rc.d/rc.rpc start

Open /etc/nsswitch.conf and change the lines you need.

Then open the script /etc/rc.d/rc.yp and uncomment the relevant parts. Also set the execution bit to 1, if it is not set yet. Then restart the yp services::

    /etc/rc.d/rc.yp restart

Setting Up the NIS Client