一个关于网络配置的问题~
时间:2006-01-18 来源:Networkgene
最近常有一些学习Linux的朋友问我~
为什么我每次上LINUX的时候都要重新配置MAC和gw才能上网~
我给他们的答案是写一个脚本:在/etc/rc2.d/S99gateway:
ifconfig eth0 down
ifconfig eth0 hw ether "mac"
ifconfig eth0 up
route add default gw "route address"
做链接把S99gateway指向/root/gw
为什么我每次上LINUX的时候都要重新配置MAC和gw才能上网~
我给他们的答案是写一个脚本:在/etc/rc2.d/S99gateway:
ifconfig eth0 down
ifconfig eth0 hw ether "mac"
ifconfig eth0 up
route add default gw "route address"
做链接把S99gateway指向/root/gw
相关阅读 更多 +
排行榜 更多 +