3-4
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 7.2
OL-29168-01
Chapter 3 Setting Up the Sensor
Changing Network Settings
ftp-timeout: 300 seconds <defaulted>
login-banner-text: <defaulted>
-----------------------------------------------
sensor(config-hos-net)#
Step 7
Exit network settings mode.
sensor(config-hos-net)# exit
sensor(config-hos)# exit
Apply Changes:?[yes]:
Step 8
Press Enter to apply the changes or enter
no
to discard them.
Changing the IP Address, Netmask, and Gateway
Use the host-ip ip_address/netmask,default_gateway command in the service host submode to change
the IP address, netmask, and default gateway after you have run the setup command. The default is
192.168.1.2/24,192.168.1.1.
The host-ip is in the form of IP Address/Netmask/Gateway: X.X.X.X/nn,Y.Y.Y.Y, where X.X.X.X
specifies the sensor IP address as a 32-bit address written as 4 octets separated by periods where X =
0-255, nn specifies the number of bits in the netmask, and Y.Y.Y.Y specifies the default gateway as a
32-bit address written as 4 octets separated by periods where Y = 0-255.
To change the sensor IP address, netmask, and default gateway, follow these steps:
Step 1
Log in to the sensor using an account with administrator privileges.
Step 2
Enter network settings mode.
sensor# configure terminal
sensor(config)# service host
sensor(config-hos)# network-settings
Step 3
Change the sensor IP address, netmask, and default gateway.
sensor(config-hos-net)# host-ip 192.0.2.1/24,192.0.2.2
Note
The default gateway must be in the same subnet as the IP address of the sensor or the sensor
generates an error and does not accept the configuration change.
Step 4
Verify the new information.
sensor(config-hos-net)# show settings
network-settings
-----------------------------------------------
host-ip: 192.0.2.1/24,192.0.2.2
default: 192.168.1.2/24,192.168.1.1
host-name: sensor default: sensor
telnet-option: enabled default: disabled
sshv1-fallback: disabled default: disabled
access-list (min: 0, max: 512, current: 1)
-----------------------------------------------
network-address: 0.0.0.0/0
-----------------------------------------------
-----------------------------------------------