0

Currently I directly type the following command to bind static ip for eth0 via normal user.
$sudo ifconfig eth0:1 192.168.20.66

How do I run this command when boot Ubuntu without typing password?

1 Answer 1

2

You can put the command in rc.local file.

Open gedit with root access gksu gedit /etc/rc.local

Before the end line (exit 0), put your command without sudo

Like

ifconfig eth0:1 192.168.20.66
exit 0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .