通过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 gw default 192.168.1.254 # 设置网关ip

猜你喜欢

转载自www.cnblogs.com/zhuomou/p/12143710.html
今日推荐