现在的位置: 首页 > 综合 > 正文

RedhatLinux HowTos – network and version relevant

2019年03月12日 ⁄ 综合 ⁄ 共 557字 ⁄ 字号 评论关闭

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.

抱歉!评论已关闭.