ifconfig eth0 192.168.1.1/24 (等同:ifconfig eth0 192.168.168.64 netmask 255.255.255.0 )# 设置ip和子网掩码
ifconfig eth0 192.168.168.64 netmask 255.255.255.0
route add default gw 192.168.1.254 # 设置网关ip
ifconfig eth0 192.168.1.1/24 (等同:ifconfig eth0 192.168.168.64 netmask 255.255.255.0 )# 设置ip和子网掩码
ifconfig eth0 192.168.168.64 netmask 255.255.255.0
route add default gw 192.168.1.254 # 设置网关ip