1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. A serious FreePBX vulnerability has been reported. Update your Framework Module immediately. Click here for details.

TomS - Fixed IP Address (netconfig)

Discussion in 'Bug Reporting and Fixes' started by TomS, Feb 28, 2012.

  1. TomS Guru

    I loaded the Purple and FreePBX 2.9 and I could not find the netconfig command or the option under help-pbx to download it 'install-netconfig'.

    Is there a different script to set up a fixed IP address for a server once you have it loaded, etc.
    or do you have to go in and edit the files?

    I may have missed something on the forums as I have been off of them for a month or so.

    I appreciate any guidance!
    Thanks
    TomS
  2. The Deacon Guru

    Try using /usr/sbin/system-config-network

    -Rick
  3. darmock PIAF Developer

    it is no longer in the 206x distro. We removed it because it was causing problems with certain parts of the centos 6.2 networking.

    tom
  4. rossiv Guru

    You could set it in Webmin but be sure that you also reset your default gateway and DNS servers as well.
  5. mvoip New Member

    If you're sure your NIC is on eth0, you can manually set your static IP address. Create /etc/sysconfig/network-scripts/ifcfg-eth0 with the following entries.

    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=static
    NETWORK=192.168.2.0 <-- your private LAN subnet
    IPADDR=192.168.2.3 <-- the desired static IP
    NETMASK=255.255.255.0 <-- your private LAN subnet mask
    GATEWAY=192.168.2.1 <-- your private gateway IP

    The next job is to edit /etc/resolv.conf and add nameservers. For example,

    nameserver 192.168.2.1
  6. TomS Guru

    TomS - SOLUTION FROM THE FORUM

    Thanks for the quick response and answer to the problem - as always!

    I did not know about the command: system-config-network
    That is what I was looking for.
    I have been editing the files as in the last post.

    I am building 2 systems on Dell 1950 servers to replace older PiaF systems on a Dell 1850 and a Dell P4 desktop. The information is just in time.

    Thanks Again,
    TomS

Share This Page