Sysresccd-manual-en Network

From SystemRescueCd

Jump to: navigation, search

With the System Rescue CD, you will be able to use the network. Here are the main important information about the network.

Contents

Setting up the network

If your system has supported hardware, the network interface card (NIC) was auto-detected, and the driver loaded. The interface needs to be assigned an IP address and a default gateway.

To use use dynamic configuration, dhcpcd eth0. Use ifconfig -a to display the IP address the DHCP server leased to the interface.

To assign a specific static IP address, enter ifconfig eth0 192.168.10.17 . Next the default route is configured. For example, for an interface at address 192.168.10.17 connected to a gateway at 192.168.10.2 enter: route add default gw 192.168.10.2.


SystemRescueCd-0.4.2 introduced boot options such as ethx, dns, gateway, dodhcp that allows you to automatically configure the network when SystemRescueCd starts. It can be very useful if you plan to make a make customized versions of the CD.

Read the chapter about Basic IP configuration tools on Linux for details about how to configure TCP/IP on a machine running Linux.

See also: FAQ "I cannot access other hosts on the network" [1]

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, you have to change the root password. Just type passwd and give a valid password. You can also use the rootpass=xxx option to define the root password from the boot prompt. Then, check the sshd server is running with /etc/init.d/sshd start. You can stop it with /etc/init.d/sshd stop Of course, this computer can be an SSH client: 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.

Access a Windows computer with Samba

The samba package allows you to access a Windows computer on the network. For example, if the Windows server (192.168.10.3) has a share named my-share, then you can mount it with these commands:

mkdir /mnt/win
mount -t smbfs -o lfs //192.168.10.3/my-share /mnt/win/
cd /mnt/win
umount /mnt/win

Samba is supported in the kernel, and samba tools are provided (smbcacls, smbcontrol, smbfilter, smbmount, smbspool, smbtar, smbclient, smbd, smbmnt, smbpasswd, smbstatus, smbumount). It's important not to forget option "lfs" (Large File Support), because it allows to handle files that are larger than 2 GB. Big file are often used when making a backup or an image file. Without this option, the copy would fail, with an error. Large files are supported since version 0.2.12 (linux kernel 2.4.25). More help with samba: http://www.samba.org/

Mount remote FTP/SSH shares as local file systems

If you want to access files located on an FTP server, there is a new very powerful way to do this. The "Userland FileSystem" allows you to mount the share, and work on the remote files just as you would work on any local files. With all these file systems, you can umount the share with the standard umount command. Here is an example of how to mount an FTP file system in /mnt/ftp as anonymous (read only)

mkdir /mnt/ftp
lufis fs=ftpfs,host=ftp.kernel.org /mnt/ftp -s 
cd /mnt/ftp
umount /mnt/ftp

Here is an example of how to mount an SSH file system in /mnt/ssh as anonymous (read only)

mkdir /mnt/ssh
passwd root
sshfs login@ssh.server.org:/path/to/dir /mnt/ssh
cd /mnt/ssh
umount /mnt/ssh

Using an ADSL USB modem

Since version 0.2.19, the system comes with drivers for several USB modems, such as SagemFast800 that is based on an Eagle chipset. These drivers have been merged in Linux-2.6.16. If you have such a modem, you will probably need firmware images, that are not provided with this disc. You will have to download these files, and access it by mounting a partition of your harddisk, where you have downloaded these files.

Views
Personal tools