- 336 名前:login:Penguin mailto:sage [2008/05/22(木) 14:11:35 ID: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 はどんな感じになるかな。
|

|