摘要:
基础知识 • 临时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地址• 阅读全文
摘要:
1 #/bin/bash 2 echo -n "IP:" # -n 代表不换行 3 read ip # 读取输入到 ip 变量 4 echo "you ip is " $ip 阅读全文