su and ifconfig

illushinz

Member
Mar 31, 2010
23
0
0
Visit site
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!
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,569
2,797
113
Visit site
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.
 

illushinz

Member
Mar 31, 2010
23
0
0
Visit site
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
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,569
2,797
113
Visit site
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 ()
 

illushinz

Member
Mar 31, 2010
23
0
0
Visit site
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.
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,569
2,797
113
Visit site
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
943,839
Messages
6,920,270
Members
3,159,254
Latest member
roth4796