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