How can we help?

How can I change the IP address of my server via command line?

Changing your IP address

Netsweeper is built on a Linux OS, and as such using the appropriate commands for this OS will allow for configuration of your Ethernet Devices.

For static IP configuration you need to edit the following files using a text editor such as vi.

Required Configuration

Edit /etc/sysconfig/network as follows:

NETWORKING=yes # hostname of your policy server
GATEWAY= # address to your gateway

Edit /etc/sysconfig/network-scripts/ifcfg-eth0:

DEVICE=eth0 # device you are using to intercept netsweeper traffic
HWADDR=00:30:48:56:A6:2E # make sure this is the right MAC address for your adapter
IPADDR= # desired static IP address

Edit /etc/resolv.conf and setup DNS servers:

search # your company's domain
nameserver # enter correct IP addresses for your nameservers

Finally, you need to restart the networking service, enter:

service network restart

Verifying Network Settings

The following commands can be used to verify your new static ip configuration for eth0:

ifconfig eth0
route -n

Changing Deny Page Host

Lastly, If you configure your deny_page_host by IP and it is pointing to localhost, then you will need to change that in the policy server configuration.



Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request