2003-05-16から1日間の記事一覧

参考URL

http://lists.debian.or.jp/debian-users/200105/msg00146.html

注意事項

カーネル2.2系ではipaliasはカーネルオプションみたいだ。 eth0でやらかすと動きがおかしくなった。 のでlo:0=127.0.0.2でやることにした。(所詮djbdns用)

常時起動化

/etc/init.d/ipalias #!/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin test -x /sbin/ifconfig || exit 0 case "$1" in start) echo -n "setting IP alias " # ifconfig eth0:0 x.x.x.x netmask y.y.y.y broadcast z.z.z.z gateway w.w.w.w ifconfig lo:0 192…

停止

ifconfig eth0:0 down

起動

ifconfig eth0:0 192.168.1.50 netmask 255.255.255.0 broadcast 192.168.1.255 ifconfig -a eth0:0 Link encap:Ethernet HWaddr 00:90:CC:12:EC:23 inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:150…

簡単解決法

/etc/network/interfaceに書けばいいだけ