Description
ip:192.168.21.172
Subnet Mask: 255.255.255.0
Gateway: 192.168.21.2
dns:8.8.8.8
8.8.4.4
1. Set the IP address
Vi/etc/sysconfig/network/ifcfg-eth0 #编辑配置文件
bootproto= ' Static ' #静态IP
broadcast= ' 192.168.21.255 ' #广播地址
Ipaddr= ' 192.168.21.172 ' #IP地址
netmask= ' 255.255.255.0 ' #子网掩码
network= ' 192.168.21.0 ' #网络地址
Startmode= ' Auto ' #开机启动网络
System operation and maintenance www.osyunwei.com warm reminder: qihang01 original content copyright, reproduced please indicate the source and the original link
2. Setting up the Gateway
Vi/etc/sysconfig/network/routes #编辑文件
Default 192.168.21.2--
3. Set up DNS
Vi/etc/resolv.conf #编辑文件
nameserver=8.8.8.8
nameserver=8.8.4.4
Rcnetwork Restart #重启网络
Service Network Restart #重启网络
/etc/init.d/network Restart #重启网络
Configuration complete, now SUSE Linux is ready to network!
SUSE Linux Enterprise Server sets IP address, gateway, DNS