通过ifconfig配置Linux地址

ifconfig eth0 192.168.1.1/24  (等同:ifconfig eth0 192.168.168.64 netmask 255.255.255.0  )# 设置ip和子网掩码

ifconfig eth0 192.168.168.64 netmask 255.255.255.0  

route add default  gw 192.168.1.254 # 设置网关ip

posted on 2020-01-03 10:48  卓某  阅读(1012)  评论(0编辑  收藏  举报

导航