【HISI系列】之IP/MAC地址配置
- IP/MAC地址的设置
方法一
1.1 临时设置IP/MAC地址
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx; (mac地址)
ifconfig eth0 192.168.1.53 netmask 255.255.255.0;
route add default gw 192.168.1.1
1.2 永久设置IP/MAC地址
修改 /etc/init.d 下的rcS 或 S80network
实例2:启动关闭指定网卡
命令:
ifconfig eth0 up
ifconfig eth0 down
说明:
ifconfig eth0 up 为启动网卡eth0 ;ifconfig eth0 down 为关闭网卡eth0
实例4:用ifconfig修改MAC地址
命令:
ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
实例5:删除和添加设置默认网关
命令:
route del default gw 192.168.120.240
route add default gw 192.168.120.240
参考网址:https://blog.csdn.net/suntingsheng123/article/details/85126949
参考网址:https://www.cnblogs.com/peida/archive/2013/03/05/2943698.html
- 方法二
单板上电后,敲“*”进入u-boot。设置serverip(即tftp服务器的ip)、ipaddr(单板ip)和ethaddr(单板的MAC地址)。
setenv serverip xx.xx.xx.xx
setenv ipaddr xx.xx.xx.xx
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv netmask xx.xx.xx.xx
setenv gatewayip xx.xx.xx.xx
saveenv
ping serverip,确保网络畅通
参考网址:http://bbs.ebaina.com/thread-8167-1-1.html
参考网址:http://bbs.ebaina.com/thread-1631-1-1.html
- 方法三
netinit 10.10.10.1 255.255.0.0 10.10.10.254
route add default gw 10.10.10.254
set ethaddr xx:xx:xx:xx:xx:xx
saveenv
telnetd&
haneWIN NFS服务器配置挂载点
exports中配置
D:\Dir -name:shareDir -public -alldirs
转自:https://blog.csdn.net/listener51/article/details/87867737
- 分享
- 举报

-
浏览量:1763次2019-12-03 16:26:29
-
浏览量:1822次2024-01-27 16:28:20
-
浏览量:4956次2022-06-11 13:46:26
-
浏览量:4109次2020-03-03 22:19:33
-
浏览量:1274次2023-08-30 18:29:34
-
浏览量:745次2024-01-26 08:39:23
-
浏览量:1063次2023-11-15 11:24:03
-
浏览量:1952次2023-11-06 11:04:59
-
浏览量:5487次2021-03-02 02:32:36
-
浏览量:2489次2020-08-18 20:05:11
-
浏览量:35810次2021-02-08 11:42:45
-
浏览量:1255次2024-01-24 18:28:37
-
浏览量:2963次2020-07-28 17:54:29
-
浏览量:3492次2020-04-10 11:14:21
-
浏览量:2244次2019-12-03 16:19:11
-
浏览量:9758次2020-09-20 00:22:59
-
浏览量:7235次2020-03-18 14:32:08
-
浏览量:2658次2018-10-08 15:41:20
-
浏览量:2478次2020-09-25 16:06:31
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖

在学了在学了!






举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明