Network Options with SysRescue¶
Note
This documentation is extracted from the System Rescue CD documentation found on line at http://www.sysresccd.org/Online-Manual-EN. Please refer to the original documentation there.
Automatic Network configuration¶
If your system has supported hardware, ethernet or wifi network adapters should be automatically detected, and the driver loaded during boot. You will still need to assign an IP address and a default gateway.
- Network-Manager provides a graphical interface to configure the network, which makes configuration easier especially for wireless networks. The Network-Manager is available as a small icon in the taskbar just next to the clock. Network-Manager is only available in the graphical environment.
- net-setup utility, (e.g.
net-setup eth0
) should be used on the command line.
Hand-configuring Networking¶
Note
To use command line tools, first stop Network-Manager by running /etc/init.d/NetworkManager stop
in the shell or by booting SystemRescueCd with the nonm boot option. If you are booting SystemRescueCd from the network or if you are using boot options such as ethx or dodhcp the Network-Manager service will automatically be stopped.
- dhcpd: To use dynamic configuration, type
dhcpcd eth0
. Then useifconfig -a
to display the IP address the DHCP server leased to the interface. - ifconfig: To assign a specific static IP address, enter
ifconfig eth0 192.168.10.17
or similar, depending on the ethernet port and IP desired. - route: Next configure the default route. For example, to connect to a gateway at 192.168.10.2 enter:
route add default gw 192.168.10.2
.
Setting up Networking at Boot¶
SystemRescueCd provides network boot options such as ethx, dns, gateway, dodhcp that allow you to automatically configure the network when SystemRescueCd starts. It is very useful if you want to boot SystemRescueCd from the network using PXE but it can be used in any case.
Running an SSH Server¶
SSH allows you to use a shell on another computer (as telnet does), and you can copy files (with scp). If you want to run an SSH server, first change the root password by typing passwd xxx
. You can also use the rootpass=xxx
boot option before SystemRescueCd starts to define the root password.
Although ssh server is automatically started, you can restart it with the command /etc/init.d/sshd restart
, and you can stop it with /etc/init.d/sshd stop
. You can also use SystemRescueCd as an SSH client to connect to an SSH server: just use ssh login@ssh.server.org
or scp source dest
. Both source and dest may be local or remote. Use login@ssh.server.org:/path/filename
for remote files.