Network Settings

Network Settings

Network Settings
Changing and checking the hostname

/etc/hosts – if the IP address has been assigned using DHCP

For Static IP addresses

Output using the hostname command

Checking the the contents of the /etc/sysconfig/network folder when assigned a static IP address


Defining/declaring a route

Adding and deleting a route

Adding and deleting a specific host

The routes in /etc/sysconfig/static-routes don’t change

The IP command can be used to define a static route, the routes can be viewed using ip route show

Example of transiting to the network using as a gateway

As an alternative

By default these entered routes are deleted after a restart, if wanting to make them permanent they should be saved to thet static-routes folder (this path is different on Linux systems)

On the Fedora distro, in the /etc/sysconfig/network-scripts/ directory create a file called route and enter the route nodes (hops) in the following format

Opening and Closing the IPTABLE Ports
To open:

To close:

To close incoming requests

To close outgoing requests

To ignore all arriving ping queries

To list all the active ports:

Using tcpdump

To see who has connected using Port 80, the lsof (list open files package) needs to be installed

Use the following command to view the systems Internet IP address

The following command to view the ethernet card’s IP address

Dumping the exchanges between the SNMP agent and SNMP manager using a network sniffer, like tcpdump, into another window.