a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 104|回复: 0

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

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
二、多网卡配置:   cat /etc/sysconfig/network-scripts/ifcfg-eth0
; u  ]* t: p# u  DEVICE=eth0% y, R* O. z) F
  BOOTPROTO=static
# Y+ B4 b2 q/ F0 @3 s+ x3 X  IPADDR=192.168.1.2
* A0 ^" D; F& y  NETMASK=255.255.255.08 K) y$ ^4 Y" o5 K2 p7 r  L
  ONBOOT=yes' }/ {+ g0 {- h6 F# Q
  cat /etc/sysconfig/network-scripts/ifcfg-eth0
4 ^7 e1 _! i  F+ S4 ]% ^) U' j0 Q  DEVICE=eth13 a* m0 _2 b# P3 @
  BOOTPROTO=static
/ V1 V- s$ u9 O6 f  IPADDR=222.157.4.82& {% a2 t* [6 D" N9 M# M# N% t
  NETMASK=255.255.255.128
& f/ d- }* y# Z* P; s1 }8 \  ONBOOT=yes9 u/ U. A7 l4 _) J) C7 _* M
  vi   /etc/rc.d/rc.local6 j& q) n" E7 p+ J; l* [
  route add -net 192.168.0.0/24 gw 192.168.0.254 dev eth0
$ u* D) s3 {* x2 l4 p! @7 A' m& I  route add -net 222.157.0.0/16 gw 222.157.66.1 dev eth1
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-14 12:04 , Processed in 0.203134 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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