摘要: 基础知识 • 临时IP地址• dhclient eth0• ifconfig eth0 192.168.1.11/24• route add default gw 192.168.1.1• echo nameserver 192.168.1.1 > /etc/resolv.conf 固定IP地址• 阅读全文
posted @ 2019-11-05 23:10 人间最美二月天 阅读(1847) 评论(0) 推荐(0) 编辑
摘要: 1 #/bin/bash 2 echo -n "IP:" # -n 代表不换行 3 read ip # 读取输入到 ip 变量 4 echo "you ip is " $ip 阅读全文
posted @ 2019-11-05 22:22 人间最美二月天 阅读(195) 评论(0) 推荐(0) 编辑