嵌入式设备路由配置 记录 记录 ifconfig eth0 up # 开启接口 eth0 ifconfig eth0 192.168.1.12 # 给接口配置IP route add default gw 192.168.1.1 # 向路由表中添加默认网关!!!