---
title: "RH Linux 网络配置"
author: "william750214"
date: "2011-11-20T09:07:03Z"
tags: []
categories: ["操作系统"]
slug: "rh-linux"
draft: true
lastmod: "2011-11-20T09:07:02Z"
id: 1266646
url: "https://william750214.iteye.com/blog/1266646"
---

网络配置：

#setup

 

ifconfig

#service network restart

命令配置只是1次

/etc/sysconfig/network-scripts/ifcfg-eth0

/etc/resolv.conf

 

网络安全初步：

ping -b 192.168.1.255  ping广播

 

(1) 防ping

/proc/sys/net/ipv4

icmp-echo-ignore-all  (0  改成  1)

 

ttl: window   128(256)  Linux 64  Unix 53

ip-default-ttl

 

(2) service

/etc/services    定义了服务的默认端口

 

(3) chattr +(-)i passwd

然后把chattr  改名

 

#which chattr

#whereis chattr

&lt;!--EndFragment--&gt;