su and ifconfig

illushinz

Member
Mar 31, 2010
23
0
0
Anyone know if its possible to run ifconfig? I'm getting my second hero today - bricked my first one. But since then I've made some changes to my WiFi network at the office. (I'm the netadmin for a 200+ node network) I setup a classid on the DHCP server and I'd like to be able to get an address with the hero, but I've got to be able to run ifconfig from an su terminal app.

Anybody have any experience with ifconfig and/or other advanced networking stuff on the Hero?

Thanks!
 
You won't be able to run ifconfig (unless you take the time to build it against the arch on the Hero and add in all the dependencies), but you might be able to manually edit the config files in /system/etc/* (as root of course) to get what you need done.

Curious, so let us know if you're able to get it sorted out.
 
Ok, looks like I need to add something to the dhcpcd.conf file (in /system/etc/dhcpcd/)

userclass string
Tag the DHCP messages with the userclass. You can specify more than one.

I'm just not real sure how to go about it. Is this where an android developer/BSD programmer comes in? LOL
 
Ok, looks like I need to add something to the dhcpcd.conf file (in /system/etc/dhcpcd/)



I'm just not real sure how to go about it. Is this where an android developer/BSD programmer comes in? LOL

This would be a config issue with dhcpcd. Try the mailing list for dhcpcd - dhcpcd-discuss+subscribe@marples.name is the sign up email address

and here's an online version of the dhcpcd man page
UNIX man pages : dhcpcd.conf ()
 
Well, I ended up taking a slightly different approach. Instead of modifying the dhcp client on the Hero, I set a reservation for the MAC address of the Hero on my DHCP server and then assigned the necessary options. i.e.: DNS servers and Gateway address. Seems to have worked.
 
Well, I ended up taking a slightly different approach. Instead of modifying the dhcp client on the Hero, I set a reservation for the MAC address of the Hero on my DHCP server and then assigned the necessary options. i.e.: DNS servers and Gateway address. Seems to have worked.

Nice work. Things are always so much easier when you're the admin :D
 

Forum statistics

Threads
955,863
Messages
6,965,945
Members
3,163,413
Latest member
shamimansariin73