SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


redhatnetworking
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
redhatnetworking [2014/03/18 21:22]
sjoerd [Network Commands]
redhatnetworking [2014/03/25 10:01] (current)
sjoerd
Line 133: Line 133:
 ** short: ip a s ** short: ip a s
 * hostname: shows the hostname * hostname: shows the hostname
 +** hostname <​new_name>:​ sets the hostname until the next reboot
 * ip route: shows routing information * ip route: shows routing information
 ** netstat -rn: shows routing information the old way ** netstat -rn: shows routing information the old way
Line 144: Line 145:
 * traceroute -Tn hostname: shows the network route with all hops * traceroute -Tn hostname: shows the network route with all hops
 ** mtr hostname: shows the network route with all hops with a nicer layout ** mtr hostname: shows the network route with all hops with a nicer layout
 +
 += Change the Hostname =
 +As shown above in the commands to temporarily change the hostname use this command:
 +<​code>​
 +hostname new.fqdn.name
 +</​code>​
 +
 +To permanently change the hostname edit the /​etc/​sysconfig/​network file to reflect the new hostname.
  
 = system-config-network = = system-config-network =
redhatnetworking.txt ยท Last modified: 2014/03/25 10:01 by sjoerd