您的位置:首页 > 运维架构 > Linux

RedhatLinux HowTos - network and version relevant

2010-02-24 16:43 369 查看

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: