Set Stargate IP

We can set Stargate IP like this:
Open the file --- /etc/init.d/networking, and then edit it following:

start)
echo -n "Configuring network interfaces: "
ifup –a
# pump -i eth0                                 #
ifconfig eth0 192.168.1.25 up           # the fixed IP
route add default gw 192.168.1.1     # gate way
ifconfig lo 127.0.0.1 up
echo "done."
;;


----------------------------------------------------
otherwise if we want to set DNS entries, we can:
set the file /etc/resolv.conf to the correct value.

你可能感兴趣的:(set)