Hi Alan

on 14.11.2012 08:20, ads...@genis-x.com wrote:
> Hi guys,
> 
> I'm trying to get nameif to work but I'm at a loss on where to implement if
> on startup?
> 
> Also the "temp name/rename" doesn't seem to work.
> 
> If I reboot. 
> This is my interfaces
> 
> eth0: 00:25:90:35:35:9e
> 
> eth1: 00:25:90:35:35:9f
> 
>  
> 
> My /etc/mactab contains
> 
> em0: 00:25:90:35:35:9e
> 
> em1: 00:25:90:35:35:9f
> 
> #
> 
> eth0: 00:25:90:35:35:9f
> 
> eth1: 00:25:90:35:35:9e
> 
>  
> 
> if I run nameif I get the following error
> 
> firewall# nameif
> 
> nameif: can't change ifname eth0 to eth1: File exists
> 
>  
> 
> So if I comment out /etc/mactab contains
> 
> em0: 00:25:90:35:35:9e
> 
> em1: 00:25:90:35:35:9f
> 
> #
> 
> #eth0: 00:25:90:35:35:9f
> 
> #eth1: 00:25:90:35:35:9e
> 
>  
> 
> firewall# nameif
> 
> works perfectly. Then uncomment the last 2 and run nameif again and it
> works.
> 
> So how do I do this properly and how do I then implement it on startup?

Whe I implemented nameif I was observeing exactly this behaviour.

Look at /etc/init.d/nameif

case "$1" in
  start)
        echo "Starting ${DESC}..."
        $DAEMON -s -c ${TEMP_MACTAB}
        $DAEMON -s
        echo "$DESC done"
        ;;

You will see that there are 2 runs for the nameif applet, once with a
temporary mactab, once with the final mactab. There should also be 2
mactab files in the /etc directory, one mactab and one mactab.tmp

For some reason I don't understand I cannot see these mactab files in
the buildtool.cfg for initrd, so they might be missing in initrd.

For now just add them to your /etc directory and then include them in
local.local. We will have to look into git to straighten that out.

cheers

Erich


Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to