Find the answer to your Linux question:
Results 1 to 2 of 2
Good Morning, I have in my server, the /etc/network/interfaces file configured as follows: # This file describes the network interfaces available on your system # and how to activate them. ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Location
    Belo Horizonte, Minas Gerais - Brasil
    Posts
    6

    Fixed IP interface, changes the address

    Good Morning,

    I have in my server, the /etc/network/interfaces file configured as follows:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    # LAN
    auto eth0
    iface eth0 inet static
    address 192.168.1.8
    netmask 255.255.255.0
    broadcast 192.168.1.255
    network 192.168.1.0

    # WAN
    auto eht1
    iface eth1 inet static
    address <my fixed ip>
    netmask 255.255.255.248
    gateway <my gateway>

    My LAN interface, eth0, chages it's ip address from time to time to 192.168.1.165, with is my DHCP ip range. There's no action in crontab requesting DHCP for this interface. Where else could i check?

  2. #2
    Just Joined!
    Join Date
    Oct 2009
    Posts
    19
    There must be something called BOOTPROTO=static on the eth0 config file to assign the IP address to the interface and make it persistent across reboots.. I'm not sure what is it for your distro... try the man page

Posting Permissions

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