记录 :老师笔记
linux 系统中的网络命令:
ifconfig 查看本地的IP地址信息
如下:
inet 192.168.94.4 netmask 255.255.254.0 broadcast 192.168.95.255
IP号 掩码 广播地址
//修改网络IP地址
ifconfig ens33 192.168.94.5
ifconfig ens33 down //关闭网卡
ifconfig ens33 up //开启网卡
//修改网关的地址 (当开发板上不了外网时使用)
route add default gw 192.168.94.1