SUSE Linux Enterprise Server sets IP address, gateway, DNS

Source: Internet
Author: User
Tags nameserver

Description

    • ip:202.118.83.247
    • Subnet Mask: 255.255.255.0
    • Gateway: 202.118.83.2
    • dns:8.8.8.8/8.8.4.4

1. Set IP

$ VI /etc/sysconfig/network/ifcfg-eth0 #编辑配置文件

1 bootproto= 'static' #静态IP2 broadcast=' #广播地址 3 ipaddr= '  202.118. 83.247 #IP地址 4 netmask= '255.255. 255.0 #子网掩码 5 network= '202.118. 83.0 #网络地址 6 startmode= ' auto ' #开机启动网络

2. Setting up the Gateway

$ vi/etc/sysconfig/network/routes #编辑文件

1 default 202.118. 83.2 –

3. Set up DNS

$ vi/etc/resolv.conf #编辑文件

1 nameserver=8.8. 8.8 2 nameserver=8.8. 4.4

4. Restart the network

$ rcnetwork Restart #重启网络  Service Network restart #重启网络 $/etc/init. D/network Restart #重启网络

SUSE Linux Enterprise Server sets IP address, gateway, DNS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.