Table of Contents
Linux - Network
Network Command
| Command | Description |
|---|---|
| ifconfig | To detect the IP Adress |
| netstat -rn | routing table |
| hostname name | To set the hostname, name is the system name you want for your local machine (fully qualified domain name or not) |
| uname -a | Give the name of the machine |
Ctrl+C interrupt the execution of a script
Articles Related
Stop and start the network interface
/etc/init.d/network stop /etc/init.d/network start
[root@di-obia-01 ~]# service network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Determining IP information for eth0... done. [ OK ]
Sending DHCP name
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Enter this parameter:
DHCP_HOSTNAME=yourhostname
service network restart