The em
interfaces are the only usable interfaces on an Olive (Junos emulator). Although Junos will let you configure other interfaces, they will not show up, nor will the prefixes you assign to them be installed in the routing table.
You can easily check this for yourself :
Configuring three interfaces on an emulated Juniper :
root> show configuration interfaces | display set
set interfaces fe-0/0/0 unit 0 family inet address 10.10.10.1/30
set interfaces ge-0/0/1 unit 0 family inet address 10.10.99.1/30
set interfaces em0 unit 0 family inet address 192.168.99.1/30
root>
Check your interfaces - the (Fast/Gigabit) ethernet interfaces do not show up :
root> show interfaces terse
Interface Admin Link Proto Local Remote
cbp0 up up
demux0 up up
dsc up up
em0 up up
em0.0 up up inet 192.168.99.1/30
em1 up up
em2 up up
em3 up up
gre up up
<...>
Same goes for your routing table :
root> show route
inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.99.0/30 *[Direct/0] 00:12:13
> via em0.0
192.168.99.1/32 *[Local/0] 00:12:13
Local via em0.0
root>
Please note that this behaviour (the ability of creating configurations for non-existing interfaces) mimicks the behaviour of 'real' Juniper routers (which makes sense, because an Olive is an emulator) : In real life, you will also be able to prepare and commit your configurations, for example prior to inserting a new linecard.
You cannot use L3/L4 ACL options in L2 ACL's, and also EGRESS policing is not supported.
Here working example for you:
[edit interfaces ge-5/0/46 unit 0 family ethernet-switching]
filter {
input interface-police;
}
[edit firewall]
family ethernet-switching {
filter interface-police {
term limit-50m {
then policer limit-50m;
}
}
}
[edit firewall]
policer limit-50m {
filter-specific;
if-exceeding {
bandwidth-limit 50m;
burst-size-limit 15k;
}
then discard;
}
In this case policer will only limit INGRESS traffic. To limit also EGRESS traffic add this section:
[edit]
class-of-service {
interfaces {
ge-5/0/46 {
shaping-rate 50m;
}
}
}
Update
I was wrong. CoS applied only for interface output, so CoS shaping and input policing should be both applied.
Best Answer
The partition table shows the partition level. Usage within a partition is up to the file system.
The article you've linked to suggests (pre Junos OS 15.1 / FreeBSD 6.1):
or (Junos OS 15.1+ / FreeBSD 10):
On JunOS OS 15.1+, the Compact Flash card isn't mounted and cannot be inspected this way.