ScreenOS Firewalls (NOT SRX)
ScreenOS Firewalls (NOT SRX)

set mac command

08.23.09   |  
‎08-23-2009 05:59 AM

hi all

i have problem using the command set mac . i can't put the interface as you see below

----------------------------------------------------------------------------------

fw-> set mac xxxxxxxxxxxxxx interface eth1/3
Invalid interface eth1/3
                                                  ^--------unknown keyword eth1/3
fw-> set mac xxxxxxxxxxxxxxxxxx interface ethernet1/3
Invalid interface ethernet1/3
                                                  ^-------------unknown keyword ethernet1/3


fw-> set mac xxxxxxxxxxxxxxxx interface ethernet1/2
Invalid interface ethernet1/2
                                                  ^-------------unknown keyword ethernet1/2

-------------------------------------------------------------------------------
any body knows what is the correct syntax ?

thanks 

4 REPLIES
ScreenOS Firewalls (NOT SRX)

Re: set mac command

08.23.09   |  
‎08-23-2009 10:29 AM

Hi Alaa

 

do u wanna set static mac or static arp ?

if you wanna set static mac you should deploy your firewall as transparent mode.

you can refer to this KB

http://kb.juniper.net/index?page=content&id=KB6120&actp=search&searchid=1251048406434

-------

The 'set MAC' command sets a static MAC address per interface to the MAC learning table of the Juniper Firewall NetScreen device. This command is only available on NetScreen devices in transparent mode. If the NetScreen is in NAT or Route mode, the 'set MAC' command will not take any effect. There is no way to change the MAC address of the physical interface itself.

-------

 

but if you wanna set static arp, this command like below 

set arp <IP address> <Mac> <interface>

 

 

Thanks

 

EL

ScreenOS Firewalls (NOT SRX)

Re: set mac command

08.25.09   |  
‎08-25-2009 09:32 AM

You can check if your box is in NAT/route or transparent mode with CLI "get sys | i System"

ScreenOS Firewalls (NOT SRX)

Re: set mac command

08.25.09   |  
‎08-25-2009 01:52 PM

Hi Elkim

thanks for the info 

ScreenOS Firewalls (NOT SRX)

Re: set mac command

08.25.09   |  
‎08-25-2009 01:53 PM

hi Caesar

it's on route/nat mode

thanks 

Alaa