#!/bin/sh
ifconfig eth0 hw ether 00:01:02:03:04:05
ifconfig eth0 10.60.2.109 netmask 255.255.255.0 up
route add default gw 10.60.2.2
ifconfig lo 127.0.0.1 up
hostname 10.60.2.109
ifconfig eth0 hw ether 00:01:02:03:04:05
ifconfig eth0 10.60.2.109 netmask 255.255.255.0 up
route add default gw 10.60.2.2
ifconfig lo 127.0.0.1 up
hostname 10.60.2.109
本文将指导您如何使用shell脚本配置网络接口、设置IP地址、默认网关,并添加路由条目,适用于Linux系统。
1305

被折叠的 条评论
为什么被折叠?



