suse linux11网络配置,2018-11-16 Suse linux配置网络参数

因工作需要配置一台Suse Linux,平常都用的是Ubuntu和Redhat,特地查了一下Suse怎么配地址的,记下来备查。

一、配IP地址, 把”xx.xx.xx.xx“用实际IP地址/广播地址/网络地址代替

linux100:/etc # vim /etc/sysconfig/network/ifcfg-eth0

BOOTPROTO='static'

NAME='VMXNET3 Ethernet Controller'

STARTMODE='auto'

USERCONTROL='no'

BROADCAST='xx.xx.xx.xx'

ETHTOOL_OPTIONS=''

IPADDR='xx.xx.xx.xx/xx'

MTU=''

NETWORK='xx.xx.xx.xx'

REMOTE_IPADDR=''

二、配网关,把’xx.xx.xx.xx‘换成实际网关

linux100:/etc # vim /etc/sysconfig/network/routes

default xx.xx.xx.xx

三、配DNS,我用的是google的,也可随意配个可用的,记得没有”=“。

linux100:/etc # cat /etc/resolv.conf

### /etc/resolv.conf file autogenerated by netconfig!

#

# Before you change this file manually, consider to define the

# static DNS configuration using the following variables in the

# /etc/sysconfig/network/config file:

# NETCONFIG_DNS_STATIC_SEARCHLIST

# NETCONFIG_DNS_STATIC_SERVERS

# NETCONFIG_DNS_FORWARDER

# or disable DNS configuration updates via netconfig by setting:

# NETCONFIG_DNS_POLICY=''

#

# See also the netconfig(8) manual page and other documentation.

#

# Note: Manual change of this file disables netconfig too, but

# may get lost when this file contains comments or empty lines

# only, the netconfig settings are same with settings in this

# file and in case of a "netconfig update -f" call.

nameserver 8.8.8.8

nameserver 8.8.4.4

4、重启网络,以下三条命令任意:

rcnetwork restart

service network restart

/etc/init.d/network restart

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值