Static IP example
This example configures shows how a capture server with static IP settings is configured.
The following table shows an example of the static IP settings for a capture server.
Setting | Value |
---|---|
DNS | my.domain |
Hostname | capture |
IP address | 172.16.1.100 |
Netmask | 255.255.255.0 |
Gateway | 172.16.1.1 |
The following configuration files show where the information from the example host settings is stored.
File /etc/hosts
contains the following lines:
127.0.0.1 localhost.localdomain localhost
172.16.1.100 capture.my.domain capture
File /etc/sysconfig/network
contains the following
line:
HOSTNAME=capture.my.domain
File /etc/sysconfig/network-scripts/ifcfg-eth0
contains
the following lines:
BOOTPROTO=static
IPADDR=172.16.1.100
NETMASK=255.255.255.0
GATEWAY=172.16.1.1
DEVICE=eth0
ONBOOT=yes