English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to have multiple ip addresses. All I want to do is execute 1 line automatically as root at or near the end of startup.

/sbin/ifconfig eth0:1 192.168.1.245

Where can / should I put this? (not an rc file, please. It should not take 200 lines of script to do this).

2006-09-11 09:02:45 · 2 answers · asked by sheeple_rancher 5 in Computers & Internet Computer Networking

2 answers

echo "/sbin/ifconfig eth0:1 192.168.1.245" >/etc/rc.d/rc.local

put u every command in rc.local ; rc.local is executed every time the sistem bootup !!

2006-09-11 19:27:17 · answer #1 · answered by portase_f 2 · 0 0

Add that one line to your init.d file.

2006-09-11 09:07:41 · answer #2 · answered by IT Pro 6 · 0 0

fedest.com, questions and answers