SuSE GmbH

SuSE Support Database

Title: The net connection does not work in the own computer

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

The net connection does not work in the own computer

Symptom:

Example: the own computer is called Thales.suse.de. A net connection like e.g. ping Thales does not work.

Cause:

An IP number for the computer is defined in /etc/hosts , because e.g. a connection is occasionally established on the modem . Since the IP number is however defined for a (inexistent) device , the own computer cannot be addressed.

Solution:

One must take care, that another route is defined for this IP number . For doing so there are (like always) several possibilities:
  1. Adjust /etc/hosts

    Enter the following values (or your own computer name either) in /etc/hosts :

    127.0.0.1  localhost
    127.0.0.1  Thales.suse.de Thales
    
    193.141.17.204 Thales.suse.de Thales
    
    Here the 2nd line with 127.... is decissive. The own computer name can possibly emerge again later on in the file.
  2. Set dummy device

    Enter in the command line:

        ifconfig dummy0 Thales
        route add Thales dev dummy0
    
  3. Set durable dummy device (recommended)

    Enter in /etc/rc.config (possibly additionally to other devices) the following script. The dummy device is created by this at every start. From S.u.S.E. 4.4 on, set

    SETUPDUMMYDEV=yes
    
    in older versions, edit the following:
    #
    # networking
    #
    # number of network cards: "_0" for one, "_0 _1 _2 _3" for four cards
    #
    NETCONFIG="_0"
    
    #
    # IP Adresses
    #
    IPADDR_0=""
    IPADDR_1=""
    IPADDR_2=""
    IPADDR_3=""
    
    #
    # network device names (e.g. "eth0")
    #
    NETDEV_0=dummy0
    NETDEV_1=""
    NETDEV_2=""
    NETDEV_3=""
    
    #
    # parameteres for ifconfig, if you put "bootp" into it, bootp will
    # be used to configure it
    # sample entry for ethernet:
    # IFCONFIG_0="192.168.81.38 broadcast 192.168.81.63 netmask 255.255.255.224"
    #
    IFCONFIG_0="Thales"
    IFCONFIG_1=""
    IFCONFIG_2=""
    IFCONFIG_3=""
    
    #
    # network address of the devices (e.g. "-net 192.168.81.32" or 
    # "-host 192.168.81.33")
    #
    NETWORK_0="Thales"
    NETWORK_1=""
    NETWORK_2=""
    NETWORK_3=""
    
    #
    # if this is set, the default route will be set to this gateway
    # (e.g. "192.168.81.33")
    #
    GATEWAY_0=""
    GATEWAY_1=""
    GATEWAY_2=""
    GATEWAY_3=""
    
    
    #
    # hostname of the system (full name)
    # if zero, and bootp is used above, bootp will also set the hostname
    # (e.g. "riemann.suse.de" or "hugo.linux.de")
    # don't forget to also edit /etc/hosts for your system
    #
    FQHOSTNAME=Thales.suse.de
    
    With this method several devices can be simultaneously defined as well (extend NETCONFIG !). However, the route for the own IP number (defined in /etc/hosts) is always found.

----------

See also:

----------

Keywords: NET, FQN, DUMMY

----------

Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-kfr_56)

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-kfr_56, Copyright SuSE GmbH, Nuremberg, Germany - Version:
SuSE GmbH - Last generated: 07. Oct 1999 16:55:24 by maddin with sdb_gen 1.00.0