Le Vendredi 5 Avril 2002 21:25, Marian Radulescu a écrit :
> Jacques Nilo wrote:
> >Now
> >ifdown -v br0
> >ifup -v br0
> >and you should see what is going on ...
> >Jacques
>>In  bridge if-post-down script one of the last thigs that this script is
> doing is to shutdown the interfaces used for the bridge. The only thing
> is that this script is using ifconfig for this and Bering does not have
> ifconfig command :(
???
I do not understand that.  if-post-down.d is a ***directory*** in 
/etc/network which is empty by default in Bering. If you put a shell script 
there then it will be executed after an ifdown command.

Example:
Here is what I put in the interface file of my Bering "virtual machine"
(no real eth0 attached)

<snip>
iface br0 inet static                                                         
          address 192.168.1.254                                               
          masklen 24                                                          
          broadcast 192.168.1.255                                            
          gateway 192.168.1.1                                                
          bridge_ports all 
<snip>

And the outcome of the commands:
firewall: -root-
# ifdown -v br0
ifdown: interface br0 not configured

firewall: -root-
# ifup -v br0  
Configuring interface br0=br0 (inet)
run-parts /etc/network/if-pre-up.d
ip addr add 192.168.1.254/24 dev br0 broadcast 192.168.1.255         
Cannot find device "br0"

firewall: -root-
# 

So whatever shell script is stored in if-pre-up.d is executed first (there 
are none) then the ip addr command is executed. The cannot find device "br0" 
is OK since this only a virtual machine

Jacques

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to