Set up hostname and domainname
The full hostname (with domain name), separated by period (.), is specified in
/etc/HOSTNAME file. The domainname can be set to
Adding default route
route command syntax differs a bit from BSD. To add a default route,
type the command::
route add default gw $gateway_host
Network configuration in Slackware is made by the
netconfig program. But
you can also edit manually the configuration files: There are two scripts:
is the file that should be edit to configure the network (
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.
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: IFNAME="eth0:0" IPADDR="10.1.0.18" NETMASK="255.0.0.0" USE_DHCP="" DHCP_HOSTNAME=""
google groups message
To restart Slackware network, just type:
# cd /etc/rc.d/ # ./rc.inet1 restart
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
/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
Setting Up the NIS Client