Start Ethernet programmatically

Hi All,
I have to type “ifup eth0” if I want to use Ethernet. Can I start Ethernet programmatically? Or add “ifup eth0” somewhere in config?

Hi,
Which product you are using?
can you share content of /etc/network/interfaces?
Thx

Hi,
I use mangoH Green.
My My /etc/network/interfaces:

/etc/network/interfaces – configuration file for ifup(8), ifdown(8)

The loopback interface
auto lo
iface lo inet loopback

Wired or wireless interfaces
auto eth0
iface eth0 inet dhcp

Wireless interfaces
iface wlan0 inet manual
pre-up /etc/init.d/tiwifi start
post-down /etc/init.d/tiwifi stop

I think Ethernet starts automatically because of auto eth0. Am I right?

Yes, also it works in my case, i.e. “ifconfig” show eth0 “up” since boot and it can get DHCP IP automatically from my network when I connect the LAN cable.