Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I am an OpenSUSE 12.1 (x64, gnome desktop) user. I have got a problem with my network configuration. I must use " ifconfig eth0 192.168.2.0 netmask 255.255.255.0 broadcast 192.168.10.255 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    5

    Question Cannot connect to the internet without using ifconfig


    Hello,

    I am an OpenSUSE 12.1 (x64, gnome desktop) user. I have got a problem with my network configuration. I must use " ifconfig eth0 192.168.2.0 netmask 255.255.255.0 broadcast 192.168.10.255 " to connect to the internet every system start. How can I solve this problem ???

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,246
    Put that command into rc.local and it will run automatically every time you boot. I assume it's only having to run it by hand that annoys you.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    You should not have to place that command in the rc.local file. In fact I would steer you away from doing this as it is not the proper way to setup your network connection.

    You need to check your /etc/sysconfig/network directory for the the ifcfg-eth# (# is the interface number) and edit that to ensure it is configured correctly. Then after that is all setup you need to ensure that the network services are started at boot time.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •