RedhatLinux HowTos - network and version relevant

How to check release version of RedHatLinux?

cat /etc/redhat-release

 

How to check kernel version in RedHatLinux?

uname -a

 

How to config IP in RedHatLinux?

/etc/sysconfig/network-scripts/ifcfg-eth0

/etc/sysconfig/network-scripts/ifcfg-xxx

 

How to config static routes in RedHatLinux?

cat  /etc/sysconfig/static-routes

any net 10.56.0.0/16 gw 192.168.0.1

any net 10.140.0.0/16 gw 192.168.0.1

 

This is derived from /etc/init.d/network script. When we execute service network restart command, the script will be called. The form of the static-routes files is concluded from the script. We can also call /etc/init.d/network restart instead.

你可能感兴趣的:(command,service,NetWork)