The first SUSE Linux IP setting method
ifconfig eth0 192.168.1.22 netmask 255.255.255.0 up
route add default gw 192.168.1.2
Definition:
#IP configuration, including subnet mask , modify eth0 and 192.168.1.22 according to the situation
#Gateway modification , modify 192.168.1.2 according to the situation
The second SUSE Linux IP setting method
In the suse operating system , each network card has a configuration file in the /etc/sysconfig/network/ directory. Log in with root , edit the file of ifcfg-eth0- the physical address of your network card: change the assignment of BOOTPROTO to static , that is, BOOTPROTO=static and then add the following content: IPADDR=192.168.1.110 NETMASK=255.255.255.0 NETWORK= 192.168.1.0 BROADCAST=192.168.1.255
To make it take effect after configuration , enter /etc/init.d/network restart to take 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 ways to set up SUSE Linux IP .
#ifconfig eth0 static IP address netmask mask up
#route add -net DNS IP address netmask mask gw static IP address
The third is based on yast2 network graphical configuration
yast command
According to SuSE, YaST is the central administration and installation tool for most administrative tasks. In fact, the .YaST of the yast command
It is a necessary part of SuSE linux system. Only delete it when the user is sure that it is absolutely no longer needed!
YaST can be used as a graphical tool for many different tasks, including (but not limited to):
* Configure and integrate hardware
* Configure network services
* Hard drive and file system management
*Software management
* System installation and update
*User Management
The yast command is located in the /sbin directory and must be run as the root user. When configuring the system using the yast command, the SuSE main system configuration file /etc/re.config will be changed. This file is maintained by a separate program called SuSEconfig, also located in the /sbin directory, which is started as needed after running the yast command. While yast is a compiled binary (source is not provided by SuSE). But SuSEconfig is a 1000-line shell script that updates the OS by using and inserting values into /etc/rc.config.
------------------
illustrate:
The reader can also manually edit the /etc/re.config file to enable or disable services, software or hardware support (such as PC cards), and then run SuSEconfig. However, YaST allows users to accomplish this task through its graphical interface, and will restart and terminate a software service appropriately for the user.