TomS - Fixed IP Address (netconfig)

TomS

Guru
Joined
Oct 18, 2007
Messages
240
Reaction score
6
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
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
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
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
You could set it in Webmin but be sure that you also reset your default gateway and DNS servers as well.
 

mvoip

New Member
Joined
Dec 8, 2010
Messages
15
Reaction score
2
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
 

TomS

Guru
Joined
Oct 18, 2007
Messages
240
Reaction score
6
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
 

Members online

Forum statistics

Threads
25,809
Messages
167,748
Members
19,238
Latest member
dbradford
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top