1. Useradd redhat
2. Passwd redhat
3. Su --
4. Exit
5. Df-h geographical situation
6. Du-sh / * file or directory statistics the use of space the size of
7. Fdisk-l / dev / sda
8. Netconfig to configure the network parameters
9. Ifconfig shows the network configuration information
10. Service network restart
11. Route-n Show the routing information (default routing)
12. Ping-b 192.168.0.255 scanning the entire network segment (to check the activities of the host)
13. Ifconfig eth0 10.0.0.254 netmask 255.255.255.0 modify IP Address
14. Ifconfig eth0 card shows the parameters specified
15. Modify IP information to delete the default route will be added manually
route add default gw 192.168.0.1
16. Ifconfig route parameters modified will not be saved, will disappear after restart
Service network restart command to use the parameters saved to the file ifcfg-eth0
/ etc/sysconfig/network-scripts/ifcfg-eth0
Vi can directly modify the document, and then re-enable the service network restart network services
17. Redhat-config-network-tui is a unique configuration tool redhat, when using this command to configure network parameters, we will write to the / etc / sysconfig / networking / profiles / directory, and more than network-scripts/ifcfg- eth0 priority, so this tool used to configure not have to use netconfig, or empty the directory first profiles
0 评论:
发表评论