Configuring network communication when booting SLES in rescue system mode

This document (7000527) is provided subject to the disclaimer at the end of this document.

Environment

Novell SUSE Linux Enterprise Server 10
Novell SUSE Linux Enterprise Server 9

Situation

Many boot issues can be resolved by troubleshooting the server in rescue system mode.
Network communication is not automatically enabled while booting in this mode.
Manual steps are required to enable network communication if data is to be transfered to or from the server.

Resolution

Method 1

Steps to manually enable networking using current rcnetwork scripts on the root file system:
  
  1. Boot from the SLES operating system media and select the rescue system boot option.

  2. Login as root when prompted.

  3. Confirm the LAN driver has been loaded.
    hwinfo --network
    There will be an output field called "Driver:" which shows the loaded driver name.
    lsmod | less should also show the driver name.

  4. insmod or modprobe the driver manually if it is not loaded.
    insmod <driver name.ko>

  5. fdisk -l to see current devices and partitions.

  6. Mount the root partition to /mnt.

    Example with /dev/sda2 as the root "/" partition: 
    mount /dev/sda2 /mnt
    NOTE:  If it is unknown which device contains root "/", manually mount and umount each device until the one containing root data is found.  See step 7 below.

  7. Confirm /mnt contains the correct root "/" partition data.
    ll /mnt
    NOTE:  Root "/" typically has folders like bin, root, opt, lib, dev, etc, proc, srv, sys, var, usr etc......

  8. Rebind proc, sys, and dev.

    mount --rbind /proc /mnt/proc
    mount --rbind /sys /mnt/sys
    mount --rbind /dev /mnt/dev

  9. Remap the root "/" to /mnt.
    chroot /mnt

  10. Start the network.
    rcnetwork start

  11. Use ifconfig and ping to confirm network communication has been enabled.

  12. Manually mount any other partitions that need to be available.

Method 2

Steps to manually enable networking using ifconfig and route:

  1. Boot from the SLES operating system media and select the rescue system boot option.

  2. Login as root when prompted.

  3. Confirm the LAN driver has been loaded.
    hwinfo --network
    There will be an output field called "Driver:" which shows the loaded driver name.
    lsmod | less should also show the driver name.

  4. insmod or modprobe the driver manually if it is not loaded.
    insmod <driver name.ko>

  5. Use the ifconfig command to configure the net device.
    ifconfig eth0 <ip address> netmask <netmask value>

    Example: 
    ifconfig eth0 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx
    (Replace the x's in this example with a legitimate IP address and mask.)

  6. Use the route command to configure a communication route.
    route add default gw <route value> dev <network interface>

    Example:
    route add default gw xxx.xxx.xxx.xxx dev eth0
    (Replace the x's in this example with a legitimate route.)

  7. Use ping to confirm network communication has been enabled.

  8. Manually mount desired partitions.

Additional Information

The steps listed in this TID assume the boot issue is not related to the availability of the root "/" partition.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7000527
  • Creation Date: 29-May-2008
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center