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
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
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