a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 97|回复: 0

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

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
 二、多网卡配置:   cat /etc/sysconfig/network-scripts/ifcfg-eth0" A7 k: S& I- s. W! s4 z% n% C
  DEVICE=eth0, B; X" C# x- x, ^8 L
  BOOTPROTO=static3 n3 Q/ x& Z; \+ J( V3 R2 x4 I
  IPADDR=192.168.1.2
" |6 h8 L! l, l4 \" Z  NETMASK=255.255.255.04 b/ x( z0 J9 C) D) }
  ONBOOT=yes$ r2 p- g/ P0 Z/ ?1 B* J! r
  cat /etc/sysconfig/network-scripts/ifcfg-eth0, h( M' b3 m/ f+ n; k' }& w
  DEVICE=eth1
  f* f/ Y+ R. u" p3 O  BOOTPROTO=static- N, M/ V$ Y- l6 F0 L" h
  IPADDR=222.157.4.82
4 w: f3 Y" N* x9 V2 h4 @  Y  NETMASK=255.255.255.128
) a, g' [6 p7 ~2 @  ONBOOT=yes
( O2 A) L. _3 N: t  vi /etc/rc.d/rc.local
2 m3 |$ \2 d9 M% G& r' k: U6 x  route add -net 192.168.0.0/24 gw 192.168.0.254 dev eth0
( I3 \( h2 h8 N  route add -net 222.157.0.0/16 gw 222.157.66.1 dev eth1
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-9 22:24 , Processed in 0.229281 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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