Ad Home

Juniper Basico

Share:

 ##############   Juniper  #####################3

cli

configure #

show interfaces brief

show interfaces terse


###### Terminologia

unit = unidad Logica de la interfaces

fpc0 = Switch 0

PIC = Slots

Instance = vrfs

irb.0 = vlan l3


###### Comandos Utiles


show system  | display set

show configuration  | display set


show interfaces terse



##### Routing

show route | match 10.149

show route forwarding-table     

edit interfaces lo0.0

set  family inet address x.x.x.x/24


edit routing-options 

set static route 0.0.0.0/0 next-hop x.x.x.x


#### OSPF

edit protocols ospf

set area 0  interface ge-0/0/0.0

set area 0 interface lo0.0


show ospf neighbor

show route protocol ospf




###### FIREWALL




edit firewall family inet

set filter MYFILTER term BLOCK from source-address 10.20.20.0/24

set filter MYFILTER term BLOCK then log discard

set filter MYFILTER term ACCEPTALL then accept


edit interfaces fxp0.0

set family inet filter output MYFILTER


######## Policys  

Policy

Term1

From >> Match Criterio

then >> Action

    ##### Exportar ruta por defecto en OSPF

set policy-statement MYPOLICY term MYTERM1 from protocol static route-filter 0.0.0.0/0 exact 

set policy-statement MYPOLICY term MYTERM1 then accept

edit protocols ospf

set export MYPOLICY


policy-statement MYPOLICY {

    term MYTERM1 {

        from {

            protocol static;

            route-filter 0.0.0.0/0 exact;

        }

        then accept;

    }

}



####### BGP

show bgp summary

show route receive-protocol bgp 10.166.63.13 

show route advertising-protocol bgp 10.166.63.13


No hay comentarios

COMENTA CON TU PERFIL DEFACEBOK

Ad Home