Find the answer to your Linux question:
Results 1 to 3 of 3
Hi every body, i have proplem : when i assign ip number to eth0 by PHP Code: shell #/sbin/ifconfig eth0 10.0.1.11  it executes correctly and assign the ip to eth0 but after ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    1

    RedHat 9 IP Proplem


    Hi every body,
    i have proplem :
    when i assign ip number to eth0 by
    PHP Code:
    shell#/sbin/ifconfig eth0 10.0.1.11 
    it executes correctly and assign the ip to eth0 but after i reboot my system
    the ip disapper any body can help

    i try to change BOOTPROTO at "/etc/sysconfig/network-scripts/ifcfg-eth0"
    from dhcp to static
    but nothing changed
    any help PLZ

  2. #2
    Just Joined! .:neogeo:.'s Avatar
    Join Date
    May 2006
    Posts
    15
    Hey dude,

    the easiest way is to run system-config-network or redhat-config-network make the changes then save and and run service network restart ... there are few files to list that you need to make changes to in order for the network properties to stick after reboot.

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    16
    Quote Originally Posted by sowhat
    Hi every body,
    i have proplem :
    when i assign ip number to eth0 by
    PHP Code:
    shell#/sbin/ifconfig eth0 10.0.1.11 
    it executes correctly and assign the ip to eth0 but after i reboot my system
    the ip disapper any body can help

    i try to change BOOTPROTO at "/etc/sysconfig/network-scripts/ifcfg-eth0"
    from dhcp to static
    but nothing changed
    any help PLZ
    You can open and edit this file /etc/rc.d/rc.local

    Add these 2 lines below to the botom of the file then save it (you can replace 255.255.255.0 abd broadcast IP to suite your subnet)

    go to terminal type in
    >/etc/rc.d/rc.local
    ...or at your next reboot it will be ok
    that is it
    --------

    ifconfig eth0 10.0.1.11 netmask 255.255.255.0 broadcast 10.0.1.255
    ifconfig eth0 up

Posting Permissions

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