0% found this document useful (0 votes)
138 views

Important Command Cisco Juniper

The document contains Juniper, Netscreen, Cisco and Fortinet configuration commands for tasks such as pinging, telnetting, showing routes, interfaces, ARP tables, BGP neighbors and configuration. It also contains commands for changing an interface, IP and BGP neighbor configuration on SSG-5.

Uploaded by

sagitraz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
138 views

Important Command Cisco Juniper

The document contains Juniper, Netscreen, Cisco and Fortinet configuration commands for tasks such as pinging, telnetting, showing routes, interfaces, ARP tables, BGP neighbors and configuration. It also contains commands for changing an interface, IP and BGP neighbor configuration on SSG-5.

Uploaded by

sagitraz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Junos:

ping routing-instance VPN_XYA 1.1.1.1


telnet routing-instance VPN_XYA 1.1.1.1
show route table VPN_XYZ IP
show route table VPN_XYZ advertising-protocol bgp 1.1.1.1
show route table VPN_XYZ receive-protocol bgp 1.1.1.1
show configuration interfaces ge-0/1/0.16
show route table VPN_BOK protocol static / statically routed
show route table VPN_BOK protocol local / local connected interfaces ips
show route table VPN_BOK next-hop 10.2.24.146 / to find routed pool
show route terse protocol bgp source-gateway 210.2.147.90 | match
203.128.8.0
show route receive-protocol bgp 210.2.147.90 | match 203.128.8.0
show route advertising-protocol bgp 210.2.147.90
show bgp summary | match 58467
++show route table inet.0 202.61.60.192/29
++show route receive-protocol bgp 210.2.147.90
==============================================
========================
Configuration to route /29 Pool behind /28 Pool and configuration in
SSG-5
set route 202.61.60.192/29 interface null preference 60 metric 10 permanent
description "loop_prevention_in_bgp"
set route 202.61.60.192/29 interface bgroup1 gateway 202.154.233.18
permanent description "pool_extntd_on_cus_rqust"
set ipv4 network 202.61.60.192/29 no-check
==============================================
=======================
show ip route vrf VPN_LDNVOICE 10.0.22.108
show ip route 10.0.22.109
show interfaces descriptions | match 2010991639
raza.zaidi@LDN-LHRGTNMSC-M7i> show arp interface ge-1/3/0.1466
raza.zaidi@LDN-LHRGTNMSC-M7i> show route 210.2.165.203 (to check the
interfaces on which said ip is configured)
set interface eth0/2 phy ?
set route 0.0.0.0/0 gateway 10.5.11.57 (default route)
set route 172.16.20.0/24 gateway 10.5.11.57 (static route)

Netscreen:
Get config
Get arp
Set interface
Get interface
save
get vrouter trust-vr protocol bgp neighbor
get vrouter trust-vr
ping 1.1.1.1 from bgroup0
clear vrouter trust protocol bgp neighbor 10.0.52.9 soft-in
clear vrouter trust protocol bgp neighbor 10.0.52.9 soft-out
get vrouter trust protocol bgp rib-in
set vrouter trust protocol bgp network 210.2.160.192/28 -> To set ipv4
network
WFP-Peshawar-> get vrouter trust-vr pro bgp nei
WFP-Peshawar-> trace-route 8.8.8.8 from bgroup0 (To check from which
interface traffic is passing through)
LDN-ISBF6Markaz-M10i> show route table VPN_SMEBANK receive-protocol
bgp 10.2.128.74
VPN_SMEBANK.inet.0: 37 destinations, 103 routes (37 active, 0 holddown, 0 hidden)
Prefix

Nexthop

* 10.2.6.48/29
* 192.168.254.204/30

MED

10.2.128.74
10.2.128.74

Lclpref
10

AS path
64554 I

10

64554 I

Ali.awais@LDN-LHRFRF-M10i> show bgp neighbor 10.5.83.142


Peer: 10.5.83.142+179 AS 65267 Local: 10.5.83.141+51884 AS 23966
Type: External

State: Established

Flags: <Sync>

Last State: OpenConfirm Last Event: RecvKeepAlive


Last Error: Hold Timer Expired Error

Export: [ pl-DEFAULT-ROUTE-WithAllRoutesInVRF-Export ]
Options: <Preference AuthKey PeerAS Refresh As Override>
Options: <AdvertisePeerAs>
Authentication key is configured
Holdtime: 90 Preference: 170
Number of flaps: 18
.

ali.awais@LDN-LHRFRF-M10i> show route receive-protocol bgp 10.5.83.142


Prefix

Nexthop

* 0.0.0.0/0

MED

Lclpref

10.5.83.142

AS path
65267 I

* 172.16.108.0/29

10.5.83.142

65267 I

* 172.16.111.0/24

10.5.83.142

65267 I

* 172.16.119.0/24

10.5.83.142

65267 I

bilal.waheed01@LDN-LHRGTN-MX104-01> show bgp summary | match 10.5.108.12


10.5.108.12

64661

196

210

1:37:06 Establ

bilal.waheed01@LDN-LHRGTN-MX104-01> show route receive-protocol bgp


10.5.108.12 terse

inet.0: 5443 destinations, 7047 routes (5381 active, 0 holddown, 63 hidden)


Prefix

Nexthop

203.223.165.96/28

MED

10.5.108.12

Lclpref
20

AS path
64661 I

bilal.waheed01@LDN-LHRGTN-MX104-01> show route advertising-protocol bgp


10.5.108.12 terse

inet.0: 5443 destinations, 7047 routes (5381 active, 0 holddown, 63 hidden)


Prefix
* 0.0.0.0/0

Nexthop

MED

Self

Lclpref

AS path

58470 38193 174 I

Cisco:
ping vrf VPN_XYZ 1.1.1.1
telnet 1.1.1.1 /vrf VPN_XYZ
show ip arp gigabit 0/x.abc
show ip arp vrf VPN_LDNVOICE gigabitEthernet 0/1.339
For chaning SSG-5 port from Ethernet 0/0 to Ethernet 0/3
unset interface ethernet0/0 protocol bgp
set vrouter "trust-vr"
set protocol bgp 64789
unset neighbor 10.2.24.145 remote-as 23966
exit
exit
unset interface ethernet0/0 ip
set interface "ethernet0/3" zone "Untrust"
set interface ethernet0/3 ip 10.2.24.146/30
set vrouter "trust-vr"
set protocol bgp 64789
set neighbor 10.2.24.145 remote-as 23966 local-ip 10.2.24.146/30 outgoinginterface ethernet0/3
set neighbor 10.2.24.145 enable
set neighbor 10.2.24.145 md5-authentication
"AAAAAAAANX+tgzsgjWCtV8RQIonyUhjtTg=="

set ipv4 neighbor 10.2.24.145 activate


set ipv4 neighbor 10.2.24.145 weight 120
set ipv4 neighbor 10.2.24.145 med 10
exit
exit
set interface ethernet0/3 protocol bgp
set interface ethernet0/3 manage ping
set interface ethernet0/3 manage telnet

**Said routes added against 10.5.18.146.


show route table VPN_NTC next-hop 10.5.18.146
VPN_NTC.inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.10.8.216/30

*[Static/5] 00:50:04

> to 10.5.18.146 via ae0.2395


10.10.10.10/32

*[Static/5] 00:50:04

> to 10.5.18.146 via ae0.2395

bilal.waheed@LDN-KHIAPC-EX4200-02> show ethernet-switching table vlan


974
Ethernet-switching table: 1 unicast entries
VLAN

MAC address

Type

HQ-SaimaTrade-S-MetroFiber-974 *

Age Interfaces
Flood

- All-members

HQ-SaimaTrade-S-MetroFiber-974 44:f4:77:0f:37:c8 Learn

1:09 ge-0/0/6.0

@LDN-KHIAPC-MX80-01> show arp interface ge-1/1/9.8239


MAC Address

Address

Name

Interface

f0:de:f1:4d:fd:cd 210.2.130.162 static-host210-2-130-162. ge-1/1/9.8239

f0:de:f1:4d:fd:cd 210.2.130.163 static-host210-2-130-163. ge-1/1/9.8239

You might also like