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
  • Bookmark "Linux - Network" at del.icio.us
  • Bookmark "Linux - Network" at Digg
  • Bookmark "Linux - Network" at Ask
  • Bookmark "Linux - Network" at Google
  • Bookmark "Linux - Network" at StumbleUpon
  • Bookmark "Linux - Network" at Technorati
  • Bookmark "Linux - Network" at Live Bookmarks
  • Bookmark "Linux - Network" at Yahoo! Myweb
  • Bookmark "Linux - Network" at Facebook
  • Bookmark "Linux - Network" at Yahoo! Bookmarks
  • Bookmark "Linux - Network" at Twitter
  • Bookmark "Linux - Network" at myAOL
 
linux/network.txt · Last modified: 2011/06/16 14:40 by gerardnico