Linux网络管理

来源:互联网 发布:mac virtualbox 鼠标 编辑:程序博客网 时间:2024/05/29 18:02

Linux网络基本网络配置方法介绍
http://www.cnblogs.com/wenanry/archive/2009/12/21/1629242.html

linux下配置ip地址四种方法

http://www.jb51.net/LINUXjishu/64000.html


配置IP: http://jingyan.baidu.com/article/fedf07375dc85e35ac89778b.html
ifconfig 或 ip a
ifconfig eth0 192.168.0.100/24    或   ifconfig eth0 192.168.0.100 netmask 255.255.255.0     --临时设置IP
vi /etc/sysconfig/network-scripts/ifcfg-eth0   --永久设置IP
ifup eth0
ifdown eth0 
service network restart
ping

route
traceroute <target-IP>
vi /etc/resolv.conf
nslookup

设置hostname:http://www.cnblogs.com/kerrycode/p/3595724.html
hostname
hostname DB-Server                            --运行后立即生效(新会话生效),但是在系统重启后会丢失所做的修改
vi /etc/sysconfig/network下的HOSTNAME变量     --需要重启生效,永久性修改
vi /etc/hosts


关闭防火墙&selinux:http://jingyan.baidu.com/article/066074d64f433ec3c21cb000.html

getenforce
setenforce 0   关闭防火墙
service iptables stop
service ip6tables stop
chkconfig iptables off
chkcofig ip6tables off
chkconfig NetworkManager off


图形界面修改:setup


debug工具:

tc
strace

原创粉丝点击