Linux静态IP设置
来源:互联网 发布:草图大师mac怎么破解 编辑:程序博客网 时间:2024/05/06 14:35
Linux静态IP设置
IP配置:
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:26:18:0B:38:C0
ONBOOT=yes
IPADDR=192.168.0.20
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
IP生效:
/sbin/ifdown eth0
/sbin/ifup eth0
通知网关更新信息:
/etc/init.d/network restart
配置DNS:
vi /etc/resolv.conf
nameserver 202.96.134.133
解决重启生效:
chattr +i /etc/resolv.conf
改为只读
查看本机网卡信息
udevinfo -a -p /sys/class/net/eth0
- Linux设置静态IP
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- linux 设置静态IP
- Linux静态IP设置
- linux设置静态ip
- linux 静态ip 设置
- Linux静态IP设置
- Linux设置静态ip
- Linux静态iP设置
- Linux静态IP设置
- linux静态ip设置
- Linux静态IP设置
- Linux 设置静态IP
- HTTP keep alive
- one case of Hibernate error:could not load an entity
- 搭建Android开发环境
- 众志成城,抗震救灾--写在5.12三周年之际
- 内存泄露位置检测
- Linux静态IP设置
- D sir leaves
- 学点 MyBatis
- TestNG
- TabActivity & TabHost 的使用
- Two principle methods of better controlling the impact of FX exposure
- 大公司使用Linux系统的使用方式
- Mako模板引擎安装以及Helloword
- WINDOWS系统文件详解