linux IP、子网掩码、网关设置及相关问题
2017-01-13 11:40
337 查看
IP和子网掩码设置命令:
[root@localhost ~]# ifconfig eth0 你要设置的IP地址 netmask 你要设置的子网掩码地址
网关设置:
[root@localhost ~]# route add default gw 你要设置的网关地址
以上设置完毕之后,重新启动网卡:
1.关闭网卡:
[root@localhost ~]#ifconfig eth0 down
2.启动网卡:
[root@localhost ~]#ifconfig eth0 up
[root@localhost ~]# ifconfig eth0 你要设置的IP地址 netmask 你要设置的子网掩码地址
网关设置:
[root@localhost ~]# route add default gw 你要设置的网关地址
以上设置完毕之后,重新启动网卡:
1.关闭网卡:
[root@localhost ~]#ifconfig eth0 down
2.启动网卡:
[root@localhost ~]#ifconfig eth0 up
相关文章推荐
- linux设置网关修改ip相关
- linux 设置网关,IP,子网掩码
- linux 下设置ip,子网掩码以及网关的命令与使用方法
- Linux系列:Ubuntu虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
- Linux配置IP、设置DNS及相关命令简介(ifconfig、mii-tool、curl)
- Linux系列:Ubuntu虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
- linux 设置ip跟网关
- linux 双网关双IP设置
- Linux 环境变量设置问题及与Oracle的相关操作
- linux ip 网关 掩码 mac 路由 dns设置方法
- SUSE Linux Enterprise Server (suse 11 sp2)设置IP、网关、DNS
- linux 上安装tomcat、进行相关设置、处理部分部署问题
- Linux下用ifconfig命令设置IP、掩码、网关
- linux设置开机启动网关且配置静态IP
- Linux网络基础-IP、子网掩码、端口号、DNS、网关
- Linux下用ifconfig命令设置IP、掩码、网关
- Linux下IP设置脚本的实例及遇到问题解决办法
- Linux系列:Ubuntu虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
- Linux下用ifconfig命令设置IP、掩码、网关
- Linux下用ifconfig命令设置IP、掩码、网关