Ubuntu 14.04 网卡网关配置修改
#添加网关
route add default gw 192.168.5.1
#强制修改网卡地址
ifconfig eth0 192.168.5.40 netmask 255.255.255.0、
服务器需要能上网,除了保证网关能正常连通之外。
检查服务器DNS设置是否正确,找到DNS设置的配置文件 /etc/resolv.conf 文件(另外网卡里面如果设置了DNS也会用网卡里面的DNS地址)
sudo vi /etc/resolv.conf,加入如下内容
nameserver 8.8.8.8
nameserver 114.114.114.114
检查系统默认的网关,
sudo vi /etc/sysconfig/network 修改网关。
#开启p4p1网卡
ifup p4p1
Ubuntu 14.04 网卡网关配置修改的更多相关文章
- Ubuntu 14.04 apache安装配置
		
http://jingyan.baidu.com/article/6d704a130c8a0d28da51ca5f.html Ubuntu 14.04 apache安装配置 1.安装 ~# apt-g ...
 - Ubuntu 14.04.3 LTS 配置 DNS Server
		
我们目的是用一台局域网机器完成 192.168.1.113 <-->cloudshield.com的解析,指定A记录和CNAME; 0.关于Ubuntu 14.04.2 LTS 下载.安装 ...
 - Ubuntu 14.04 VPS安装配置***的方法
		
#安装*** $ sudo apt-get update $ sudo apt-get install python-gevent python-pip $ sudo pip install shad ...
 - Linux ->> Ubuntu 14.04 LTE下配置SSH免密码登录
		
首先用apt-get命令安装SSH jerry@ubuntu:~$ sudo apt-get install ssh [sudo] password for jerry: Reading packag ...
 - ubuntu 14.04 lts LAMP配置
		
一.目标 创建服务器环境,主要包括:Apache2.4.7 serverPHP 5.5.9Mysql 5.5.49扩展:MemcacheMcrypt 二.准备工作 1.服务器系统版本 Ubuntu s ...
 - ubuntu 14.04网卡配置以及关闭防火墙
		
一.Ubuntu网卡配置如下: 在文件/etc/network/interfaces中进行以下配置 auto lo iface lo inet lookback auto eth0 iface eth ...
 - 【转】Ubuntu 14.04.3上配置并成功编译Android 6.0 r1源码
		
http://www.linuxidc.com/Linux/2016-01/127292.htm 终于成功把Android 6.0 r1源码的源码编译.先上图,这是在Ubuntu中运行的Android ...
 - 查看ubuntu 14.04的网关和DNS
		
root@ubuntu:~# nm-tool NetworkManager Tool State: connected (global) - Device: eth0 [自动以太网] -------- ...
 - Ubuntu 14.04 安装配置备忘录
		
完全在 Linux 下工作,大概有3年时间了. 之前都是用 Windows, 而把 Linux 装在虚拟机里,现在反过来,把 Windows 装在了虚拟机里,只是因为偶尔还要用网银的缘故. 以我这几年 ...
 
随机推荐
- Linux 配置jdk vim和 Linux 基本操作
			
1下载jdk tar.gz 安装包(http://www.oracle.com/) 注意安装机器的Linux 是x86(32位)还是x64(64位)的 2使用tar -zxvf jdk.tar.gz解 ...
 - “df: cannot read table of mounted file systems”.
			
“df: cannot read table of mounted file systems”.“df -l” returned an error: “df: cannot read table of ...
 - SVN  问题解决之  Working copy path does not exist in repository
			
同事的SVN更新时提示某个特定文件提示 Working copy path does not exist in repository svn更新会被这个错误打断,导致无法完全更新 删掉文件再更新仍然有 ...
 - 使用HTML CSS制作简易三角形和旗帜
			
HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...
 - MyBatis工厂工具类 MyBatisUtils
			
import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apach ...
 - swoole httpserver学习
			
文件 HttpServer.php <?php /** * Created by PhpStorm. * User: mac * Date: 2019/9/13 * Time: 21:00 */ ...
 - linux使用glibc版本安装mysql8.0.12
			
1.前言 使用yum安装虽然很方便,但是如果要是在没有公网的环境下,是没有办法使用yum源的.所以我们可以使用mysql提供的glibc版本的安装包,进行安装. 但是在安装之前,一定要将以前的版本删除 ...
 - Flutter——Card组件
			
Card 是卡片组件块,内容可以由大多数类型的 Widget 构成,Card 具有圆角和阴影,这让它看起来有立体感. Card组件的常用属性: 属性 说明 margin 外边距 child 子组件 ...
 - github安全整理
			
漏洞及渗透练习平台: WebGoat漏洞练习平台: https://github.com/WebGoat/WebGoat webgoat-legacy漏洞练习平台: https://github.co ...
 - centos下关闭自动锁屏
			
自己这段时间在学习Linux,选用的系统的为CentOS,在实际操作过程中遇到问题,在无任何操作情况下,系统过一段时间自动锁屏需要重新输入密码.经过多次尝试以后终于成功!解决方法如下: Setting ...