Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
29

I think, you can use show | compare from configuration mode.


22

The MX platform does not have the general concept of a "VLAN" that is present on the whole platform. The MX only "sees" VLAN tags on incoming packets and can then act on these tags. What you want is to bridge packets from two ports that have the same VLAN-ID in the L2 header and then add a L3 interface to that bridge. On the MX platform you have two ways of ...


12

'monitor start messages' is roughly equivalent to 'term mon. 'messages' is the name of the log file you want to monitor. If you don't see the output you expect, you need to change what is logged to given file from 'set configuration system syslog file X ...'.


12

% strings jkernel-ppc-13.2R1.7|grep "FreeBSD: release" $FreeBSD: release/7.3.0/sys/kern/kern_pmc.c 193634 2009-06-07 10:00:35Z fabient $ 13.3 will be running 10.0. (edit: alas, this turned out not to be true)


9

I opened a case with HP concerning this issue. After escalating past the useless Level 1 tech, the Level 2 tech very alertly spotted something that I had not. The SRX is sending its DHCPDISCOVER packet with a TTL of 1. The Procurve's apparently will decrement the TTL and use the resulting TTL in the relay'ed packet to the DHCP server. In this case, the ...


9

The problem is the: [edit protocols rsvp] load-balance bandwidth If you look at the Juniper documentation for Unequal Cost Load Balancing RSVP LSPs, it states: For uneven load balancing using bandwidth to work, you must have at least two equal-cost LSPs toward the same egress router and at least one of the LSPs must have a bandwidth value configured at ...


8

This can easily turn into a debate, sure you could do management in different logical-system, but what are the perceived gains? You're still going to need to protect the main instance just the same. In my opinion you gain nothing but you add complexity, which means added risk of downtime. It would be different matter on SUP2T or Nexus7k with CMP, where you ...


8

In cases where common configure mode is unavailable, like when the chassis are clustered, you can use the following method. After executing a commit at, JunOS checks the config and creates the file /config/juniper.conf+.gz. The running config database is locked until the commit at time, so other users won't be able to commit interim changes. Other users ...


8

What is the functional difference between these two TPID values? 0x8100 This TPID is used in 802.1Q - its your average, everyday VLAN tagging. A common use for VLANs is for enterprises to organize their network into functional groups (like research, finance, or management). 0x88a8 This TPID is used in 802.11ad - its used for provider bridging (also ...


7

This looks like a simple layer two domain. MPLS is typically used only as backbone or distribution transit, that is, among routers. To implement MPLS, you would need to push the VLAN interfaces down to the access switches (and thus split Host5 into a new network or move it to switch 2) and run MPLS among the multilayer switches. Although, this wouldn't bring ...


7

The reference guide does state that configuring class of service on the main router will work for logical systems: Port mirroring, source class usage, destination class usage, unicast reverse-path forwarding, class of service, firewall filters, class-based forwarding, and policy-based accounting work with logical systems when you configure these features ...


7

Do you need a "from" clause in a policy-statement? No. You don't. Without a "from" class everything will match. Can you pre-pend your own AS on advertisements in JUNOS to eBGP peers? Yes, of course you can, that's the typical way in which AS prepending is being done. So the real question is: why doesn't this work? One thing which I'm not sure ...


7

test policy PS-Filter-Prefix-Size 0.0.0.0/0 This should display routes passing the policy There isn't direct way to ask the opposite, but you could create policy which calls 'PS-Filter-Prefix-Size' and then rejects and accepts rest. Testing this policy would yield opposite results, showing routes not passing 'PS-Filter-Prefix-Size'. As far as I understand ...


7

Your Juniper EX2200 console connections will use the same connection you use when logging in remotely. Getting root is completely dependent on your setup. The following syntax would prevent root login: root-authentication { encrypted-password ****disabled****; ## SECRET-DATA This makes it impossible to login via the root account. If you absolutely ...


7

I don't think that will work, Juniper will just refuse the login since there's no valid authentication mechanism configured. The only way to do this properly is by actually setting a password: user@juniper# set system login user teun authentication plain-text-password and/or a SSH key: user@juniper# set system login user teun authentication ssh-rsa "<...


7

Setting idle-timeout for root directly from the CLI is not possible, unfortunately. I wrote an event script that does what you need. Basically, every 5 minutes it checks: If root is logged in via console (verified by a "-" in the FROM section of "show system users") If root is logged in, has it been idle for 15 minutes or more (checked in seconds, so 900 ...


7

As per the RFC, link-local addresses will be used for any Neighbour Discovery including RA messages. Source: https://tools.ietf.org/html/rfc4861#section-4.2 PacketLife has a good blog post that clearly explains Neighbour Discovery. http://packetlife.net/blog/2008/aug/28/ipv6-neighbor-discovery/


7

set replaces the current communities on a route with the specified community, while add adds the specified community to any communities already present on that route.


7

The Cisco command completion uses the <TAB> key (one of the Juniper options). Cisco commands also do not even need to be complete to work; they only need to be complete enough to be unambiguous. For example, most people type sh run rather than the full show running-config. You can also type ? to get the list of options.


6

Interface jsrv.1 is always associated to IP address 128.0.0.127. jsrv up up jsrv.1 up up inet 128.0.0.127/2 An archive at SourceForge has the below command output snippet that shows a connection between 128.0.0.127 and port 6343 (sFlow port)1: tcpdump -v udp port 6343 -s 1500: 11:52:07.624977 IP (tos 0x0, ...


6

X indicates that it is a aggressive feature train per KB27144 and TSB16034. The NN is a normal incremental version number.


6

Per port, not aggregate. Schedulers are not global, rather per interface queue.


6

Just to provide an answer for anyone else experiencing similar issues, this was a cosmetic bug that was fixed from JUNOS 12.3 onwards. Actual update from TAC "There is an issue with the stats collection command where the HW counter was not getting cleared. Thus the stats reporting was continuously incrementing it's counter even though no actual EOPE ...


6

I solved this problem finally. By capturing and comparing DHCP Discover packets sent from JunOS and Cisco, I found Cisco sends Option 64 Client Identifier and Option 12 Host Name by default. However, JunOS will not send them without explicit instructions. I think my ISP sets up a filter or something on their side. The above two options are mandatory. When I ...


6

Ryan is correct, you can do absolutely anything from root. JUNOS is built on FreeBSD and inherits that behavior. But to be honest, it's rarely used directly. The biggest practical example I can think of offhand would be to collect core files from devices without another type of authentication, whether its due to a configuration issue or maybe you have ...


6

TCNs are only generated from non-edge ports when they receive a BPDU. Verify that your access ports are configured as edge ports under your spanning-tree config. set protocols rstp interface ge-0/0/0 edge


6

It's just slightly different syntax, if you're trying to match lines containing specific strings, you'd use: show configuration | match "abc|xyz" Also, here's the documentation in case you want to get fancier: JUNOS Command Regex


6

You can use show ethernet switching table. The following is taken from, Configuring MAC Limiting (Official Juniper Documentation). Configure: [edit ethernet-switching-options secure-access-port] user@host# set interface all allowed-mac 00:05:85:3A:82:80 user@host# set interface all allowed-mac 00:05:85:3A:82:81 user@host# set interface all allowed-mac 00:...


6

For some reason the Juniper documentation (http://www.juniper.net/techpubs/en_US/junos13.2/topics/reference/command-summary/ssh.html) doesn't mention it, but it is possible. The command is: ssh <username>@<hostname>


Only top voted, non community-wiki answers of a minimum length are eligible