Three methods for setting IP addresses in SuSE

Source: Internet
Author: User

FirstSuSE Linux IPSetting Method
Ifconfig eth0 192.168.1.22 netmask 255.255.255.0 up
Route add default GW 192.168.1.2

Meaning:
# IP configuration, including subnet mask. Modify eth0 and 192.168.1.22 as needed
# Modify the gateway and modify 192.168.1.2 according to the situation

 

SecondSuSE Linux IPSetting Method

In the SuSE operating system, each Nic has a configuration file under the/etc/sysconfig/Network/directory. Log On with root and edit the ifcfg-eth0-the file for the physical address of your NIC:
Change the value of bootproto to static, that is, bootproto = static.
Add the following content:
Ipaddr = 192.168.1.110
Netmask = 255.255.255.0
Network = 192.168.1.0
Broadcast = 192.168.1.255

Enter/etc/init. d/network restart takes effect. Note that the network management configuration of suse9 is configured in the routes file in the/etc/sysconfig/Network/directory. In this way, you have learned two methods for setting SuSE Linux IP addresses.

 

# Ifconfig eth0 static IP address netmask mask up
# Route add-net dns ip address netmask mask GW static IP Address

 

Third, accordingYast2 NetworkGraphical Configuration

 

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.