a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 120|回复: 0

[红帽认证] linux红帽认证:RedhatLinux网络配置二

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
 二、多网卡配置:   cat /etc/sysconfig/network-scripts/ifcfg-eth0
& T. k8 N' N6 I9 H4 e  DEVICE=eth01 W+ h9 T/ X/ U& x5 C
  BOOTPROTO=static+ l9 R* }3 i& ?. _% V) k4 e
  IPADDR=192.168.1.2
! _1 W( y3 ]8 Q* ?" r  NETMASK=255.255.255.06 d$ N/ O/ `$ V4 Z
  ONBOOT=yes& M4 h! t/ d5 t- f; }: q
  cat /etc/sysconfig/network-scripts/ifcfg-eth03 B7 a+ K: T, u
  DEVICE=eth17 J. f$ O# @  D  i: \
  BOOTPROTO=static
4 `0 s3 Q. v7 {' S- F* f& h  IPADDR=222.157.4.820 t1 s! l2 a1 ]- S+ N5 B5 P
  NETMASK=255.255.255.128
' F$ Q' e; o6 _, f  ONBOOT=yes
' D& s& u5 b7 r$ B& i) z. s  vi /etc/rc.d/rc.local6 x( U$ p4 V" g4 B: q7 z
  route add -net 192.168.0.0/24 gw 192.168.0.254 dev eth0( u  N/ X. t9 B, v, A
  route add -net 222.157.0.0/16 gw 222.157.66.1 dev eth1
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-9-28 08:19 , Processed in 0.315265 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表