hi,all
i write my home work the latter part .
first i rewite /etc/network/interfaces
------------------------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
auto wlan0
iface wlan0 inet dhcp
wpa-ssid URoad-9BF
wpa-ap-scan 1
wpa-key-mgmt WPA-PSK
wpa-psk 4955
and i do
update-rc.d -f wicd remove
update-rc.d -f network-manager remove
and then reboot
and then run the following shellscript
ifconfig eth0 192.168.0.1
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/init.d/dnsmasq restart
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 wlan0
dhclient br0
#ping -c 5 www.openbsd.org
#ifconfig -a
/etc/init.d/network-manager stop
/etc/init.d/wicd stop
/etc/init.d/ssh restart
--------------- homework------------------>
# iw wlan0 info
command failed: No such device (-19)
# iw br0 info
command failed: No such device (-19
<-----------------------------------------------
but
route
åä¿¡å
ãµã¤ã ã²ã¼ãã¦ã§ã¤ ããããã¹ã¯ ãã©ã°
Metric Ref ä½¿ç¨æ° ã¤ã³ã¿ãã§ã¼ã¹
(gateway)
(interface)
default 192.168.100.254 0.0.0.0 UG 204 0 0 br0
link-local * 255.255.0.0 U 202 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.100.0 * 255.255.255.0 U 204 0 0 br0
ifconfig -a
br0 Link encap:ã¤ã¼ãµããã ãã¼ãã¦ã§ã¢ã¢ãã¬ã¹
00:22:cf:ec:c8:05
inetã¢ãã¬ã¹:192.168.100.251
ããã¼ããã£ã¹ã:192.168.100.255
ãã¹ã¯:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 ã¡ããªãã¯:1
RXãã±ãã:903 ã¨ã©ã¼:0 æå¤±:0 ãªã¼ãã©ã³:0 ãã¬ã¼ã
:0
TXãã±ãã:381 ã¨ã©ã¼:0 æå¤±:0 ãªã¼ãã©ã³:0
ãã£ãªã¢:0
è¡çª(Collisions):0 TXãã¥ã¼é·:0
RXãã¤ã:58634 (57.2 KiB) TXãã¤ã:55245 (53.9 KiB)
eth0 Link encap:ã¤ã¼ãµããã ãã¼ãã¦ã§ã¢ã¢ãã¬ã¹
b8:27:eb:27:84:5d
inetã¢ãã¬ã¹:192.168.0.1 ããã¼ããã£ã¹ã:192.168.0.255
ãã¹ã¯:255.255.255.0
inet6ã¢ãã¬ã¹: fe80::ba27:ebff:fe27:845d/64 ç¯å²:ãªã³ã¯
UP BROADCAST RUNNING MULTICAST MTU:1500 ã¡ããªãã¯:1
RXãã±ãã:246 ã¨ã©ã¼:0 æå¤±:0 ãªã¼ãã©ã³:0 ãã¬ã¼ã
:0
TXãã±ãã:675 ã¨ã©ã¼:0 æå¤±:0 ãªã¼ãã©ã³:0
ãã£ãªã¢:0
è¡çª(Collisions):0 TXãã¥ã¼é·:1000
RXãã¤ã:37912 (37.0 KiB) TXãã¤ã:126740 (123.7 KiB)
lo Link encap:ãã¼ã«ã«ã«ã¼ãããã¯
inetã¢ãã¬ã¹:127.0.0.1 ãã¹ã¯:255.0.0.0
inet6ã¢ãã¬ã¹: ::1/128 ç¯å²:ãã¹ã
UP LOOPBACK RUNNING MTU:65536 ã¡ããªãã¯:1
RXãã±ãã:4 ã¨ã©ã¼:0 æå¤±:0 ãªã¼ãã©ã³:0 ãã¬ã¼ã :0
TXãã±ãã:4 ã¨ã©ã¼:0 æå¤±:0 ãªã¼ãã©ã³:0 ãã£ãªã¢:0
è¡çª(Collisions):0 TXãã¥ã¼é·:0
RXãã¤ã:240 (240.0 B) TXãã¤ã:240 (240.0 B)
wlan0 Link encap:ã¤ã¼ãµããã ãã¼ãã¦ã§ã¢ã¢ãã¬ã¹
00:22:cf:ec:c8:05
inet6ã¢ãã¬ã¹: fe80::222:cfff:feec:c805/64 ç¯å²:ãªã³ã¯
UP BROADCAST RUNNING MULTICAST MTU:1500 ã¡ããªãã¯:1
RXãã±ãã:1148 ã¨ã©ã¼:0 æå¤±:13 ãªã¼ãã©ã³:0
ãã¬ã¼ã :0
TXãã±ãã:748 ã¨ã©ã¼:0 æå¤±:1 ãªã¼ãã©ã³:0
ãã£ãªã¢:0
è¡çª(Collisions):0 TXãã¥ã¼é·:1000
RXãã¤ã:187948 (183.5 KiB) TXãã¤ã:133449 (130.3 KiB)
and debiandog get ip address 192.168.100.104
namely
internet --wifi router:192.168.100.254.....
...wlan0:{raspberry}:eth0-----eth0:192.168.100.104{debiandog}
br0:192.168.100.251
again i use only dnsmasq & bridge .
this may help openbsd's ethenet converter .
in the future i wii try this on openbsd.
(today i install openbsd 5.9 snapshots , it runs well , japanese input
method is OK)
-----
regards