Difference between revisions of "Junos"

From neil.tappsville.com
Jump to navigationJump to search
m
m
Line 37: Line 37:
 
==CGN==
 
==CGN==
 
  show services nat mappings address-pooling-paired
 
  show services nat mappings address-pooling-paired
 +
 +
==BNG Subscribers ==
 +
 +
Clearing subscribers, only need to clear the L3 sessions - this automatically clears the L2 sessions (or should):
 +
 +
clear dhcp relay binding routing-instance Customers dual-stack 116.yyy.yyy.yyy
 +
or
 +
 +
clear dhcp relay binding routing-instance Customers ps1.xxxx
 +
clear dhcpv6 relay binding routing-instance Customers ps1.xxxx
 +
 +
clear dhcpv6 relay binding routing-instance Customers ps0.*
 +
clear dhcpv6 relay binding routing-instance Customers ps2.*
 +
clear dhcpv6 relay binding routing-instance Customers ps3.*
 +
clear dhcpv6 relay binding routing-instance Customers ps4.*
 +
 +
* or PPPoE subs:
 +
clear pppoe sessions pp0.3221225754
 +
 +
 +
* Clear the VLAN interface
 +
clear auto-configuration interfaces ps6.3221273839
  
 
==ddos==
 
==ddos==

Revision as of 00:00, 30 September 2019

Configuration

  • Deactivate - configuration is not loaded
  • Disable - Configuration is loaded by ignored
  • Trunk - has vlan tags
  • Access - naked ethernet
  • Fx / ex0 = management
show configuration | display inheritance no-comments
show configuration | display inheritance no-comments | display set | match foo

Loading config

configure private
load replace /var/tmp/someconfig.cfg
show | compare
commit check
commit <synchronize> and-quit


Routing

Display all routes in a routing-instance (cant use auto complete)

show route table <routing-instance_name>
show route receive-protocol bgp <neighbour IP>
show route instance <name> detail
deactivate routing-instances <name> protocols bgp group <group name / Domestic> neighbour <IP>

MTU testing

ping routing-instance <name> <IP> size 1500

Disable an interface carrying MPLS

  • Disable ISIS @ both ends set protocols isis interface [x] level 2 metric 30 disable
  • Wait for tarffic to close /end then shutdown the interface

CGN

show services nat mappings address-pooling-paired

BNG Subscribers

Clearing subscribers, only need to clear the L3 sessions - this automatically clears the L2 sessions (or should):
clear dhcp relay binding routing-instance Customers dual-stack 116.yyy.yyy.yyy
or
clear dhcp relay binding routing-instance Customers ps1.xxxx
clear dhcpv6 relay binding routing-instance Customers ps1.xxxx
clear dhcpv6 relay binding routing-instance Customers ps0.*
clear dhcpv6 relay binding routing-instance Customers ps2.*
clear dhcpv6 relay binding routing-instance Customers ps3.*
clear dhcpv6 relay binding routing-instance Customers ps4.*
  • or PPPoE subs:
clear pppoe sessions pp0.3221225754


  • Clear the VLAN interface
clear auto-configuration interfaces ps6.3221273839

ddos

show ddos-protection protocols dhcpv6 violations
jddosd[20065]: DDOS_PROTOCOL_VIOLATION_CLEAR: INFO: Host-bound traffic for protocol/exception Sample:aggregate has returned to normal. Its allowed bandwith was exceeded at fpc 1 for 181 times, from 2017-09-30 12:36:18 NZDT to 2017-09-30 12:36:28 NZDT

Inital Build

request system configuration rescue save
request system autorecovery state save
request system snapshow slice alternative

Hardware

show interfaces diagnostics optics xe-1/0/0
show system processes extensive | match chassisd
help topic interfaces family
  • Ifdown set interfaces ge-0/0/7 disable
  • Ifup delete set interfaces ge-0/0/7 disable