08/05/22 14:11:35 TSFxFdcT
#!/bin/bash
if [ $UID != 0 ];then
echo >&2 "not root"
exit;fi
ifconfig -a eth0 192.168.0.2
ifconfig -a lo 127.0.0.1
route add default gw 192.168.0.1
echo -e "nameserver 192.168.0.1" > /etc/resolv.conf
走らせて、ifconfig, tcpdump はどんな感じになるかな。