[Tokyodebian-2006] Debian勉強会21事前課題
Kouhei Sutou
kou at cozmixng.org
Thu Oct 12 11:34:19 UTC 2006
はじめまして.
須藤といいます.
以下,事前課題になります.
--
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
post-up wget -O /dev/null http://XXX:YYY@ZZZ.ZZZ.ZZZ.ZZZ/AAA.BBB.CCC.DDD/
post-up wget -O /dev/null http://XXX:YYY@ZZZ.ZZZ.ZZZ.ZZZ/AAA.BBB.CCC.DDD/
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
pre-up /sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
post-down /sbin/iptables -t nat -D POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
#iface eth1 inet6 static
# address 2001:2f8:c2:201::fff3
# netmask 64
# gateway 2001:2f8:c2:201::1
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
wireless_essid ZZZ
wireless_mode master
wireless_key 0000-1111-2222-3333-4444-5555-66
pre-up /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
pre-up /etc/init.d/dhcp stop
pre-up /etc/init.d/bind stop
post-up iwpriv wlan0 set_mac_mode 1
post-up /etc/init.d/dhcp start
post-up /etc/init.d/bind start
post-down /sbin/iptables -t nat -D POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
More information about the Tokyodebian-2006
mailing list