Results 1 to 5 of 5
I need to issue a bunch of commands during boot to create and configure several tun/taps with tunctl and then bridge them and a physical connection via brctl. I have ...
- 07-10-2005 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 5
Where to place additional network commands for boot?
I need to issue a bunch of commands during boot to create and configure several tun/taps with tunctl and then bridge them and a physical connection via brctl. I have a script working well to accomplish this (albeit without any error checking), but where should I place this to have it automatically occur on boot?
- 07-10-2005 #2
This can change from distr to distro, though they are in either /etc/rc.d/rc.3
/etc/rc.3 /etc/init.d or /etc/init.d/rc.3
- 07-10-2005 #3Just Joined!
- Join Date
- Jun 2005
- Posts
- 5
thanks for the tip, lead me to find the right place

Under sw10.1 it's /etc/rc.d/rc.inet1 and rc.inet2 for all network related scripts. I opted to place most of my script in rc.inet2 since the tun/tap devices are only linked to the operation of uml's that will eventually be scripted into that startup too.
rc.inet1.conf contains the nic configuration bits, so I used that to settup the (three) physical nics.
Inside rc.inet2 I added scripting to create and configure 4 tun/tap devices, and add them and two of the nics to two different bridges.
While I was at it I added some really basic error checking to my script and now voila, it configures everything on boot.
- 07-10-2005 #4
During boot as in pre-login, use /etc/rc.d/rc.local you can add your commands here without having to modify the others
- 07-12-2005 #5Linux Newbie
- Join Date
- Apr 2005
- Location
- CT --> PA
- Posts
- 170
and it provides continuity between runlevels. If you put it in RC.3 and then for some reason booted RC.4, you'd be missing what you needed. rc.local is the best bet.
Originally Posted by Krendoshazin Chicks dig giant mechanized war machines


Reply With Quote