$ sudo dhclient -v Internet Systems Consortium DHCP Client 4.2.4 Copyright 2004-2012 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/usb0/02:e9:fb:f0:0b:f0 Sending on LPF/usb0/02:e9:fb:f0:0b:f0 Sending on Socket/fallback DHCPREQUEST of 192.168.2.9 on usb0 to 255.255.255.255 port 67 (xid=0x137b281b) DHCPACK of 192.168.2.9 from 192.168.2.1 RTNETLINK answers: File exists bound to 192.168.2.9 -- renewal in 42520 seconds.
ルーティングを確認すると、サブネットが変更されました。
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 usb0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0
OSXのターミナルからBeagleBone BlackにSSH接続します。
$ ssh debian@192.168.2.2 Ubuntu 14.04.1 LTS
rcn-ee.net console Ubuntu Image 2015-01-06
Support/FAQ: http://elinux.org/BeagleBoardUbuntu
default username:password is [ubuntu:temppwd]
ubuntu@192.168.2.2's password: Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.14.31-ti-r49 armv7l)
usb0ネットワークを確認します。OSXのbridge100と同じネットワークになっています。
$ ip addr show usb0 5: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 2e:3d:e9:00:de:ca brd ff:ff:ff:ff:ff:ff inet 192.168.2.2/24 brd 192.168.2.255 scope global usb0 valid_lft forever preferred_lft forever inet6 fe80::2c3d:e9ff:fe00:deca/64 scope link valid_lft forever preferred_lft forever