[nmglug] Android Question
Sam Noble
s at mnoble.net
Tue Jan 15 12:48:56 PST 2013
> On Mon, Dec 31, 2012 at 10:26 AM, Will Pearson <william at cnsp.net> wrote:
>
> > I know it's not exactly a Linux question. But does anyone know if
> > Android can allow multiple IP's on the same interface? Thinking about
> > getting an Android Tablet for some technical work, but that work
> > requires the use of multiple IP's on the same interface. I've tried
> > older versions of Android on older tablets and it didn't seem to allow
> > it, but that was some time ago with an older version of Android. Does
> > anyone know if things have changed?
FWIW, on replicant2.3 (network stack would be from Cyanogenmod7) this
works fine from the cli on the usb network interface:
sh-4.1# ip a list usb0
9: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN qlen 1000
link/ether 62:d2:ea:b9:a0:fe brd ff:ff:ff:ff:ff:ff
inet 192.168.42.129/24 brd 192.168.42.255 scope global usb0
inet6 fe80::60d2:eaff:feb9:a0fe/64 scope link
valid_lft forever preferred_lft forever
sh-4.1# ip addr a 192.168.42.130/24 dev usb0
sh-4.1# ip a list usb0
9: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN qlen 1000
link/ether 62:d2:ea:b9:a0:fe brd ff:ff:ff:ff:ff:ff
inet 192.168.42.129/24 brd 192.168.42.255 scope global usb0
inet 192.168.42.130/24 scope global secondary usb0
inet6 fe80::60d2:eaff:feb9:a0fe/64 scope link
valid_lft forever preferred_lft forever
sh-4.1# ip addr a 10.0.0.35/24 dev usb0
sh-4.1# ip a list usb0
9: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN qlen 1000
link/ether 62:d2:ea:b9:a0:fe brd ff:ff:ff:ff:ff:ff
inet 192.168.42.129/24 brd 192.168.42.255 scope global usb0
inet 10.0.0.35/24 scope global usb0
inet 192.168.42.130/24 scope global secondary usb0
inet6 fe80::60d2:eaff:feb9:a0fe/64 scope link
valid_lft forever preferred_lft forever
And also seems to work with GSM interface:
sh-4.1# ip a list rmnet0
6: rmnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN qlen 1000
link/ether 7e:98:f9:5b:bd:a1 brd ff:ff:ff:ff:ff:ff
inet 22.58.96.36/30 brd 22.58.96.39 scope global rmnet0
inet6 fe80::7c98:f9ff:fe5b:bda1/64 scope link
valid_lft forever preferred_lft forever
sh-4.1# ip a a 10.1.1.1/24 dev rmnet0
sh-4.1# ip a list rmnet0
6: rmnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN qlen 1000
link/ether 7e:98:f9:5b:bd:a1 brd ff:ff:ff:ff:ff:ff
inet 22.58.96.36/30 brd 22.58.96.39 scope global rmnet0
inet 10.1.1.1/24 scope global rmnet0
inet6 fe80::7c98:f9ff:fe5b:bda1/64 scope link
valid_lft forever preferred_lft forever
--
sam
More information about the nmglug
mailing list