How to change static IP of iface usb1 (large USB connector on back of board - Default 192.168.6.2)

59 views
Skip to first unread message

rudydelo...@gmail.com

unread,
Jun 13, 2018, 7:53:59 AM6/13/18
to BeagleBoard
Does anyone know how to change usb1 static IP from 192.168.6.2 to say 192.168.6.5?

Linux beaglebone 4.4.110-ti-r144 #1 SMP Wed Jan 24 03:00:14 UTC 2018 armv7l GNU/Linux

I'm using connmanctl for eth0, not sure if it can be used for usb1

Here is the /etc/connman/main.conf
[General]
PreferredTechnologies=ethernet,wifi
SingleConnectedTechnology=false
AllowHostnameUpdates=false
PersistentTetheringMode=true
NetworkInterfaceBlacklist=SoftAp0,usb0,usb1

usb0 and usb1 are blacklisted so I should be able to change them with /etc/network/interfaces

I can change usb0 fine using

# usb0
iface usb0 inet static
    address 192.168.7.5
    netmask 255.255.255.0
    network 192.168.7.0
    gateway 192.168.7.1

But this doesn't work?

# usb0
iface usb0 inet static
    address 192.168.7.5
    netmask 255.255.255.0
    network 192.168.7.0
    gateway 192.168.7.1

# usb1
iface usb1 inet static
    address 192.168.6.5
    netmask 255.255.255.0
    network 192.168.6.0
    gateway 192.168.6.1

root@beaglebone:~# ifconfig
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.190  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::9a84:e3ff:fe05:1194  prefixlen 64  scopeid 0x20<link>
        ether 98:84:e3:05:11:94  txqueuelen 1000  (Ethernet)
        RX packets 5054  bytes 473374 (462.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 368  bytes 45964 (44.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 178

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.7.5  netmask 255.255.255.0  broadcast 192.168.7.255
        ether 98:84:e3:05:11:96  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.6.2  netmask 255.255.255.252  broadcast 192.168.6.3
        ether 98:84:e3:05:11:99  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



Robert Nelson

unread,
Jun 13, 2018, 12:11:21 PM6/13/18
to Beagle Board, rudydelo...@gmail.com
see:

/opt/scripts/boot/autoconfigure_usb1.sh

/sbin/ifconfig usb1 192.168.6.2 netmask 255.255.255.252 || true

We didn't care to make it auto-configurable, Windows users never see
it, Linux users see both, so only MacOSX users see it by default..

Regards,

--
Robert Nelson
https://rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages