9. [edit]
root# show
interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching;
}
}
ge-0/0/1 {
unit 0 {
family ethernet-switching;
}
}
ge-0/0/2 {
unit 0 {
family ethernet-switching;
}
}
Copyright 2012 (c)
www.zenithnetworks.com 9
10. Interface ge-0/0/0
Physical
Speed and Duplex
MTU
Logical
IPAddress
root@Left# set interfaces ge-0/0/0 ?
Possible completions:
accounting-profile Accounting profile name
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
description Text description of interface
disable Disable this interface
> ether-options Ethernet interface-specific options ( physical… speed / duplex )
gratuitous-arp-reply Enable gratuitous ARP reply
> hold-time Hold time for link up and link down
mac Hardware MAC address
mtu Maximum transmit packet size (256..9216)
.
.
> unit Logical interface ( ip address )
vlan-tagging 802.1q VLAN tagging support
Copyright 2012 (c)
www.zenithnetworks.com 10
11. [edit interfaces ge-0/0/0]
1. root@Left# set ether-options no-auto-negotiation
root@Left# set ether-options speed ?
Possible completions:
> auto-negotiation Enable auto-negotiation
10m 10Mbps
100m 100Mbps
1g 1Gbps
[edit interfaces ge-0/0/0]
2. root@Left# set ether-options speed 1g
[edit interfaces ge-0/0/0]
3. root@Left# set ether-options link-mode full-duplex
Copyright 2012 (c)
www.zenithnetworks.com 11
13. Place an IPv4 address on the .0 logical unit of a physical interface.
[edit interfaces ge-0/0/23]
root@Left# set unit 0 family inet address 192.168.1.1/24
[edit interfaces ge-0/0/23]
root@Left# show
unit 0 {
family inet {
address 192.168.1.1/24;
} ge-0/0/23
}
Copyright 2012 (c)
www.zenithnetworks.com 13
14. [edit interfaces ge-0/0/23]
root@Left# set unit 0 family inet address 192.168.1.1/24
root@Left# set unit 0 family inet address 192.168.2.1/24
root@Left# set unit 0 family inet address 192.168.3.1/24
[edit interfaces ge-0/0/23]
root@Left# set unit 0 family inet address 192.168.3.1/24 primary
[edit interfaces ge-0/0/23]
root@Left# show
unit 0 {
family inet {
address 192.168.1.1/24;
address 192.168.2.1/24;
address 192.168.3.1/24 {
primary;
}
Copyright 2012 (c)
www.zenithnetworks.com 14
15. [edit interfaces ge-0/0/0]
root@Left# show
unit 0 {
family inet {
address 192.168.20.1/24;
}
root@Left# delete interfaces ge-0/0/0 unit 0 family inet
[edit]
root@Left# set interfaces ge-0/0/0 unit 0 family ethernet-switching
ge-0/0/0 {
unit 0 {
family ethernet-switching;
}
Copyright 2012 (c)
www.zenithnetworks.com 15
x
16. root@Left> show interfaces ge-0/0/0 ?
Possible completions:
<[Enter]> Execute this command
brief Display brief output
descriptions Display interface description strings
detail Display detailed output
extensive Display extensive output
media Display media information
routing-instance Name of routing instance
snmp-index SNMP index of interface
statistics Display statistics and detailed output
terse Display terse output
| Pipe through a command
Copyright 2012 (c)
www.zenithnetworks.com 16
17. root@Left# run show interfaces ge-0/0/1
Physical interface: ge-0/0/1, Enabled, Physical link is Down
Interface index: 130, SNMP ifIndex: 506
Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,
BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,
Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,
Remote fault: Online, Media type: Copper
Device flags : Present Running
Interface flags: Hardware-Down SNMP-Traps Internal: 0x0
Link flags : None
CoS queues : 8 supported, 8 maximum usable queues
Current address: 28:c0:da:2a:20:04, Hardware address: 28:c0:da:2a:20:04
Last flapped : Never
Input rate : 0 bps (0 pps)
Output rate : 0 bps (0 pps)
Active alarms : LINK
Active defects : LINK
Interface transmit statistics: Disabled
Logical interface ge-0/0/1.0 (Index 69) (SNMP ifIndex 507)
Flags: Device-Down SNMP-Traps 0x0 Encapsulation: ENET2
Input packets : 0
Output packets: 0
Protocol eth-switch
Flags: None
Copyright 2012 (c)
www.zenithnetworks.com 17
18. root@Left# run show interfaces ge-0/0/0 terse
Interface Admin Link Proto Local Remote
ge-0/0/0 up up
ge-0/0/0.0 up up eth-switch
root@Left# run show interfaces ge-0/0/0 brief
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Link-level type: Ethernet, MTU: 1514, Speed: 1000mbps, Duplex: Full-Duplex,
Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled,
Auto-negotiation: Disabled, Remote fault: Online, Media type: Copper
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x0
Link flags : None
Logical interface ge-0/0/0.0
Flags: SNMP-Traps 0x0 Encapsulation: ENET2
eth-switch
Copyright 2012 (c)
www.zenithnetworks.com 18
19. root@Left> show interfaces ge-0/0/0 detail
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Interface index: 130, SNMP ifIndex: 504, Generation: 133
Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,
BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,
Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,
Remote fault: Online
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x0
Link flags : None
CoS queues : 8 supported, 8 maximum usable queues
Hold-times : Up 0 ms, Down 0 ms
Current address: 28:c0:da:2a:2f:c0, Hardware address: 28:c0:da:2a:2f:c0
Last flapped : 2013-02-26 12:21:11 UTC (00:23:12 ago)
Statistics last cleared: Never
Traffic statistics:
Input bytes : 14808 0 bps
Output bytes : 27007 0 bps
Input packets: 99 0 pps
Output packets: 195 0 pps
Copyright 2012 (c)
www.zenithnetworks.com 19
25. root@Left> monitor traffic interface ge-0/0/0 ?
Possible completions:
<[Enter]> Execute this command
absolute-sequence Display absolute TCP sequence numbers
brief Display brief output
count Number of packets to receive (0..1000000 packets)
detail Display detailed output
extensive Display extensive output
layer2-headers Display link-level header on each dump line
matching Expression for headers of receive packets to match
no-domain-names Don't display domain portion of hostnames
no-promiscuous Don't put interface into promiscuous mode
no-resolve Don't attempt to print addresses symbolically
no-timestamp Don't print timestamp on each dump line
print-ascii Display packets in ASCII when displaying in hexadecimal format
print-hex Display packets in hexadecimal format
resolve-timeout Period of time to wait for each name resolution (seconds)
size Amount of each packet to receive (bytes)
| Pipe through a command
Copyright 2012 (c)
www.zenithnetworks.com 25
26. root@Left> monitor traffic interface ge-0/0/0 detail
Address resolution is ON. Use <no-resolve> to avoid any reverse lookup delay.
Address resolution timeout is 4s.
Listening on ge-0/0/0, capture size 1514 bytes
11:19:44.332148 In STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id
8000.28:c0:da:2a:20:01.8201, length 43
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
root-id 8000.28:c0:da:2a:20:01, root-pathcost 0, port-role Designated
11:19:46.207063 In STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id
8000.28:c0:da:2a:20:01.8201, length 43
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
root-id 8000.28:c0:da:2a:20:01, root-pathcost 0, port-role Designated
Copyright 2012 (c)
www.zenithnetworks.com 26
27. 1. root@Leftt# set interfaces ge-0/0/0 disable
2. root@Left# commit
configuration check succeeds
commit complete
3. root@Left# run show interfaces ge-0/0/0
Physical interface: ge-0/0/0, Administratively down, Physical link is Down
4. root@Left# run show interfaces ge-0/0/0 terse
Interface Admin Link Proto Local Remote
ge-0/0/0 down down
ge-0/0/0.0 up down eth-switch
[edit]
5. root@Left# delete interfaces ge-0/0/0 disable
Copyright 2012 (c)
www.zenithnetworks.com 27
28. [edit]
root@Left# set interfaces ge-0/0/0 description ****WEB-SERVER****
root@Left# commit
configuration check succeeds
commit complete
root@Left# run show interfaces ge-0/0/0
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Interface index: 129, SNMP ifIndex: 504
Description: ****WEB-SERVER****
Link-level type: Ethernet, MTU: 1514, Speed: 1000mbps, Duplex: Full-Duplex,
Copyright 2012 (c)
www.zenithnetworks.com 28
29. 1. Define “range-name” and place interfaces into range group….
1. root@Left# set interfaces interface-range server-ports member-range ge-0/0/5 to ge-0/0/10
2. Associate a vlan with the prior defined range group….
2. root@Left# set interfaces interface-range server-ports unit 0 family ethernet-switching vlan members
server-vlan
3. root@Left# show interfaces interface-range server-ports
member-range ge-0/0/5 to ge-0/0/10;
unit 0 {
family ethernet-switching {
vlan {
members server-vlan;
Copyright 2012 (c)
www.zenithnetworks.com 29
30. [edit]
root@Left# run show vlans
Name Tag Interfaces
server-vlan 100 ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0, ge-0/0/8.0,
ge-0/0/9.0, ge-0/0/10.0
Copyright 2012 (c)
www.zenithnetworks.com 30
31. ** All Interfaces have been reset to the default vlan **
root# run show vlans
Name Tag Interfaces
default
ge-0/0/0.0, ge-0/0/1.0, ge-0/0/2.0, ge-0/0/3.0,
ge-0/0/4.0, ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0,
ge-0/0/8.0, ge-0/0/9.0, ge-0/0/10.0, ge-0/0/11.0,
ge-0/0/12.0, ge-0/0/13.0, ge-0/0/14.0, ge-0/0/15.0,
ge-0/0/16.0, ge-0/0/17.0, ge-0/0/18.0, ge-0/0/19.0,
ge-0/0/20.0, ge-0/0/21.0, ge-0/0/22.0, ge-0/0/23.0
Copyright 2012 (c)
www.zenithnetworks.com 31
32. [edit]
root@Left# set vlans default vlan-id 50
Perform a Commit!!!
root@Left# run show vlans
Name Tag Interface
default 50 ge-0/0/0.0, ge-0/0/1.0, ge-0/0/2.0, ge-0/0/3.0,
ge-0/0/4.0, ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0,
ge-0/0/8.0, ge-0/0/9.0, ge-0/0/10.0, ge-0/0/11.0,
ge-0/0/12.0, ge-0/0/13.0, ge-0/0/14.0, ge-0/0/15.0,
ge-0/0/16.0, ge-0/0/17.0, ge-0/0/18.0, ge-0/0/19.0,
ge-0/0/20.0, ge-0/0/21.0, ge-0/0/22.0, ge-0/0/23.0
Copyright 2012 (c)
www.zenithnetworks.com 32
33. [edit]
root@Left# set vlans marketing vlan-id ?
Possible completions:
<vlan-id> 802.1q tag (1..4094)
[edit]
root@Left# set vlans marketing vlan-id 30
[edit]
root@Left# set vlans engineering vlan-id 40
root@Left# commit
configuration check succeeds
commit complete
Copyright 2012 (c)
www.zenithnetworks.com 33
35. root@Left# edit interfaces ge-0/0/11 unit 0 family ethernet-switching
[edit interfaces ge-0/0/11 unit 0 family ethernet-switching]
root@Left# set vlan members engineering
root@Left# commit
configuration check succeeds
commit complete
root@Left# run show vlans engineering
Name Tag Interfaces
engineering 40 ge-0/0/11.0
Copyright 2012 (c)
www.zenithnetworks.com 35
36. [edit]
root@Left# set interfaces ge-0/0/12 unit 0 family ethernet-switching vlan members marketing
root@Left# commit
configuration check succeeds
commit complete
[edit]
root@Left# show vlans
engineering {
vlan-id 40;
}
marketing {
vlan-id 30;
Copyright 2012 (c)
www.zenithnetworks.com 36
38. [edit interfaces ge-0/0/11 unit 0 family ethernet-switching]
root@Right# set vlan members engineering
[edit]
root@Right# set interfaces ge-0/0/12 unit 0 family ethernet-switching vlan members marketing
root@Right# commit
configuration check succeeds
commit complete
Copyright 2012 (c)
www.zenithnetworks.com 38
40. Driven via the VLAN level, and NOT the interface level....
[edit]
root@Right# set vlans test interface ge-0/0/24
[edit]
root@Right# show vlans
engineering {
vlan-id 40;
}
marketing {
vlan-id 30;
}
test {
vlan-id 200;
interface {
ge-0/0/24.0;
Copyright 2012 (c)
www.zenithnetworks.com 40
41. root@Right# show vlans
engineering {
vlan-id 40;
}
marketing {
vlan-id 30;
root@Right# edit interfaces ge-0/0/19 unit 0 family ethernet-switching
[edit interfaces ge-0/0/19 unit 0 family ethernet-switching]
root@Right# set vlan members 40
[edit interfaces ge-0/0/19 unit 0 family ethernet-switching]
root@Right# show
vlan {
members 40;
Copyright 2012 (c)
www.zenithnetworks.com 41
43. root@Left# edit interfaces ge-0/0/20 unit 0 family ethernet-switching
[edit interfaces ge-0/0/20 unit 0 family ethernet-switching]
root@Left# set port-mode trunk
[edit interfaces ge-0/0/20 unit 0 family ethernet-switching]
root@Left# set vlan members [30 40]
[edit interfaces ge-0/0/20 unit 0 family ethernet-switching]
root@Left# show
port-mode trunk;
vlan {
members [ 30 40 ];
}
root@Left# commit
configuration check succeeds
commit complete
Copyright 2012 (c)
www.zenithnetworks.com 43
44. root@Right# set interfaces ge-0/0/20 unit 0 family ethernet-switching port-mode trunk
[edit interfaces ge-0/0/20 unit 0 family ethernet-switching]
root@Right# set vlan members [marketing engineering ]
[edit interfaces ge-0/0/20 unit 0 family ethernet-switching]
root@Right# show
port-mode trunk;
vlan {
members [ marketing engineering ];
}
root@Right# commit
configuration check succeeds
commit complete
Copyright 2012 (c)
www.zenithnetworks.com 44
45. root@Left# run show vlans
Name Tag Interfaces
default ge-0/0/0.0, ge-0/0/1.0, ge-0/0/2.0, ge-0/0/3.0,
ge-0/0/4.0, ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0,
ge-0/0/8.0, ge-0/0/9.0, ge-0/0/10.0, ge-0/0/13.0,
engineering 40
ge-0/0/11.0*, ge-0/0/20.0* ( 11 is an access ports and 20 is trunk )
marketing 30
ge-0/0/12.0*, ge-0/0/20.0* ( 12 is an access ports and 20 is trunk )
Copyright 2012 (c)
www.zenithnetworks.com 45
46. root@Left> show ethernet-switching interfaces ge-0/0/11 ( Access Interface )
Interface State VLAN members Tag Tagging Blocking
ge-0/0/11.0 up engineering 40 untagged unblocked
root@Left> show ethernet-switching interfaces ge-0/0/12 ( Access Interface )
Interface State VLAN members Tag Tagging Blocking
ge-0/0/12.0 up marketing 30 untagged unblocked
root@Left> show ethernet-switching interfaces ge-0/0/20 ( Trunk Interface )
Interface State VLAN members Tag Tagging Blocking
ge-0/0/20.0 up engineering 40 tagged unblocked
marketing 30 tagged unblocked
Copyright 2012 (c)
www.zenithnetworks.com 46
47. root@Right# run show vlans
Name Tag Interfaces
default ge-0/0/0.0, ge-0/0/1.0, ge-0/0/2.0, ge-0/0/3.0,
ge-0/0/4.0, ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0,
ge-0/0/8.0, ge-0/0/9.0, ge-0/0/10.0, ge-0/0/13.0,
engineering 40
ge-0/0/11.0*, ge-0/0/20.0* ( 11 is an access ports and 20 is trunk )
marketing 30
ge-0/0/12.0*, ge-0/0/20.0* ( 12 is an access ports and 20 is trunk )
Copyright 2012 (c)
www.zenithnetworks.com 47
48. root@Right> show ethernet-switching interfaces ge-0/0/11 ( Access Interface )
Interface State VLAN members Tag Tagging Blocking
ge-0/0/11.0 up engineering 40 untagged unblocked
root@Right> show ethernet-switching interfaces ge-0/0/12 ( Access Interface )
Interface State VLAN members Tag Tagging Blocking
ge-0/0/12.0 up marketing 30 untagged unblocked
root@Right> show ethernet-switching interfaces ge-0/0/20 ( Trunk Interface )
Interface State VLAN members Tag Tagging Blocking
ge-0/0/20.0 up engineering 40 tagged unblocked
marketing 30 tagged unblocked
Copyright 2012 (c)
www.zenithnetworks.com 48
49. In the simplest of terms….
Bandwidth ( additional traffic lanes!! )
Redundancy ( backup traffic lanes!! )
Use of existing network resources!!
Reduce level of dependency on Spanning-Tree protocol
Copyright 2012 (c)
www.zenithnetworks.com 49
52. Create a virtual LAG group / interface
Hard-code speed and duplex for member interfaces
Place multiple physical ports into LAG
Intelligence (802.1q, vlans, protocols ) is placed onto LAG
interface
Bandwidth!!! Redundancy!!!
Copyright 2012 (c)
www.zenithnetworks.com 52
LAG
53. Load balance traffic across the multiple physical ports
Ports within LAG must be of same type, speed and FDX
Maximum # of ports within a LAG is 8
Maximum number of LAG’s….. EX4200 is 111
Copyright 2012 (c)
www.zenithnetworks.com 53
54. LACP: Optional… Not required
LACP: Detects misconfiguration on the LAG
Failed ports, speed / duplex, wrong LAG group
LACP: Configured on both end of connection
LACP: Active / Active…. or Active / Passive
LACP: Auto join and delete individual links to ae
Copyright 2012 (c)
www.zenithnetworks.com 54
55. On both ethernet switches… create virtual ae ( aggregated ethernet interface )
tom@LAG-1# set chassis aggregated-devices ethernet device-count 1
tom@LAG-2# set chassis aggregated-devices ethernet device-count 1
tom@LAG-1# run show interfaces terse | match ae
ae0 up down
Copyright 2012 (c)
www.zenithnetworks.com 55
56. On both ethernet switches… set speed / duplex for interfaces to be part of ae0
tom@LAG-1# set interfaces ge-0/0/0 ether-options link-mode full-duplex
tom@LAG-1# set interfaces ge-0/0/1 ether-options link-mode full-duplex
tom@LAG-1# set interfaces ge-0/0/2 ether-options link-mode full-duplex
tom@LAG-1# set interfaces ge-0/0/0 ether-options speed 1g
tom@LAG-1# set interfaces ge-0/0/1 ether-options speed 1g
tom@LAG-1# set interfaces ge-0/0/2 ether-options speed 1g
Copyright 2012 (c)
www.zenithnetworks.com 56
57. On both ethernet switches… set speed / duplex for interfaces to be part of ae0
tom@LAG-2# set interfaces ge-0/0/0 ether-options link-mode full-duplex
tom@LAG-2# set interfaces ge-0/0/1 ether-options link-mode full-duplex
tom@LAG-2# set interfaces ge-0/0/2 ether-options link-mode full-duplex
tom@LAG-2# set interfaces ge-0/0/0 ether-options speed 1g
tom@LAG-2# set interfaces ge-0/0/1 ether-options speed 1g
tom@LAG-2# set interfaces ge-0/0/2 ether-options speed 1g
Copyright 2012 (c)
www.zenithnetworks.com 57
58. On both ethernet switches… marry physical interfaces to LAG ae0
tom@LAG-1# set interfaces ge-0/0/0 ether-options 802.3ad ae0
tom@LAG-1# set interfaces ge-0/0/1 ether-options 802.3ad ae0
tom@LAG-1# set interfaces ge-0/0/2 ether-options 802.3ad ae0
tom@LAG-2# set interfaces ge-0/0/0 ether-options 802.3ad ae0
tom@LAG-2# set interfaces ge-0/0/1 ether-options 802.3ad ae0
tom@LAG-2# set interfaces ge-0/0/2 ether-options 802.3ad ae0
Copyright 2012 (c)
www.zenithnetworks.com 58
59. On both ethernet switches… configure an ip address on the ae0 LAG
tom@LAG-1# set interfaces ae0 unit 0 family inet address 192.168.1.1/24
tom@LAG-2# set interfaces ae0 unit 0 family inet address 192.168.1.2/24
Copyright 2012 (c)
www.zenithnetworks.com 59
61. root@LAG-1# run show interfaces terse | match ae
ge-0/0/0.0 up up aenet --> ae0.0
ge-0/0/1.0 up up aenet --> ae0.0
ge-0/0/2.0 up up aenet --> ae0.0
ae0 up up
ae0.0 up up inet 192.168.1.1/24
Copyright 2012 (c)
www.zenithnetworks.com 61
62. root@LAG-1# run ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=3.399 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=4.940 ms
Copyright 2012 (c)
www.zenithnetworks.com 62
63. root@LAG-1# run show interfaces ae0 extensive
Physical interface: ae0, Enabled, Physical link is Up
Current address: 28:c0:da:2a:2f:c0, Hardware address: 28:c0:da:2a:2f:c0
Last flapped : 2013-03-03 20:24:15 UTC (00:02:06 ago)
Statistics last cleared: Never
Traffic statistics:
Input bytes : 4892 0 bps
Output bytes : 7260 504 bps
Input packets: 36 0 pps
Output packets: 73 0 pps
Copyright 2012 (c)
www.zenithnetworks.com 63
65. Interface Monitoring:
1. Copy packets to local interface for monitoring
2. Packets entering or exiting an interface (up tp 256 interfaces)
VLAN Monitoring:
1. Copy packets to a analyzer VLAN for remote monitoring
2. Packets entering VLAN (up to 256 vlan’s)
Policy:
1. Policy-Based (firewall filter define traffic to be mirrored)
Copyright 2012 (c)
www.zenithnetworks.com 65
66. Local Port Mirroring of Server Traffic
set interfaces ge-0/0/10 unit 0 family ethernet-switching
set interfaces ge-0/0/20 unit 0 family ethernet-switching
set ethernet-switching-options analyzer monitor-traffic input ingress interface ge-0/0/10.0
set ethernet-switching-options analyzer monitor-traffic output interface ge-0/0/20.0
Copyright 2012 (c)
www.zenithnetworks.com 66
67. Local Port Mirroring of Server Traffic
{master:0}[edit ethernet-switching-options]
root@flyers# show
analyzer monitor-traffic {
input {
ingress {
interface ge-0/0/10.0;
}
}
output {
interface {
ge-0/0/20.0;
}
}
}
Copyright 2012 (c)
www.zenithnetworks.com 67
68. Local Port Mirroring of Server Traffic
root@flyers# run show analyzer
Analyzer name : monitor-traffic
Output interface : ge-0/0/20.0 ( sniffer )
Mirror ratio : 1
Loss priority : Low
Ingress monitored interfaces : ge-0/0/10.0 ( device being monitored )
Copyright 2012 (c)
www.zenithnetworks.com 68
70. Copyright 2012 (c)
www.zenithnetworks.com 70
Define allowed MAC address on an interface
[edit ethernet-switching-options secure-access-port]
root@New-York# set interface ge-0/0/15 allowed-mac 40:6c:8f:3f:f8:2d
[edit ethernet-switching-options secure-access-port]
root@New-York# set interface ge-0/0/16 allowed-mac [40:6c:8f:3f:f8:2e 40:6c:8f:11:22:33]
[edit ethernet-switching-options secure-access-port]
root@New-York# show
interface ge-0/0/15.0 {
allowed-mac 40:6c:8f:3f:f8:2d;
}
interface ge-0/0/16.0 {
allowed-mac [ 40:6c:8f:3f:f8:2e 40:6c:8f:11:22:33 ]
71. Copyright 2012 (c)
www.zenithnetworks.com 71
Limit number of MAC addresses learned on an interface
[edit ethernet-switching-options secure-access-port]
1. root@New-York# set interface ge-0/0/17 mac-limit ?
Possible completions:
<limit> Number of dynamic MAC addresses allowed on this interface
action Action to take if limit is exceeded
[edit ethernet-switching-options secure-access-port]
2. root@New-York# set interface ge-0/0/17 mac-limit 1 action ?
Possible completions:
drop Drop the packet and log it ( only packets over defined limit )
log Log a message ( no drop, just log )
none Take no action ( fine control, while other interfaces have a global action )
shutdown Shut down the interface ( shutdown the full interface )
72. Copyright 2012 (c)
www.zenithnetworks.com 72
Continue with Limit number of MAC addresses learned on an interface
[edit ethernet-switching-options secure-access-port]
root@New-York# set interface ge-0/0/17 mac-limit 1 action drop
[edit ethernet-switching-options secure-access-port]
root@New-York# show
}
interface ge-0/0/17.0 {
mac-limit 1 action drop;
}
73. Copyright 2012 (c)
www.zenithnetworks.com 73
root@New-York# run show ethernet-switching table
Ethernet-switching table: 2 entries, 1 learned, 0 persistent entries
VLAN MAC address Type Age Interfaces
default * Flood - All-members
default b0:e8:92:08:66:e8 Learn 1:21 ge-0/0/17.0 ( Only 1 allowed MAC )
root@New-York# run show log messages
Mar 13 12:00:00 New-York newsyslog[1615]: logfile turned over due to size>128K
Mar 13 12:00:02 New-York eswd[1286]: ESWD_MAC_LIMIT_DROP: MAC limit (1) exceeded at
ge-0/0/17.0: dropping the packet from src 7c:d1:c3:77:64:46
74. Copyright 2012 (c)
www.zenithnetworks.com 74
[edit ethernet-switching-options secure-access-port]
1. root@New-York# set vlan engineering mac-move-limit ?
Possible completions:
<[Enter]> Execute this command
<limit> Number of MAC movements allowed on this VLAN
action Action to be taken in case the MAC movement limit is exceeded
[edit ethernet-switching-options secure-access-port]
2. root@New-York# set vlan engineering mac-move-limit 2 action ?
Possible completions:
drop Drop the packet and log it
log Log a message
none Take no action
shutdown Shut down the interface
[edit ethernet-switching-options secure-access-port]
3. root@New-York# show
vlan engineering {
mac-move-limit 2 action log;
75. Copyright 2012 (c)
www.zenithnetworks.com 75
Multiple purposes:
1. Prevent rogue DHCP devices from impacting users
2. Capture DHCP messages and build snoop table
3. Deny rogue dhcp server from receiving dhcp requests
4. Prevent ARP Spoofing
Rogue DHCP Device
78. Copyright 2012 (c)
www.zenithnetworks.com 78
ARP Spoofing… Man in the middle… DOS…. Not good.
DAI – Dynamic Arp Inspection: Used to prevent ARP Spoof Attacks
Inspect ARP packets against Snoop-DB… if invalid… drop!
Arp packets are compared to a switch-based DHCP Snooping DB.
Ports / Interfaces
Access: Untrusted ( perform inspection )
Trunk: Trusted ( bypass ARP inspection )
79. Copyright 2012 (c)
www.zenithnetworks.com 79
1. DHCP Snooping Process
Switch reads DHCP lease information
Switch adds entries to the local switch DHCP Snoop-DB
root@San-Fran> show dhcp snooping binding
DHCP Snooping Information:
MAC Address IP Address Lease Type VLAN Interface
01:02:03:04:05:06 192.168.1.20 600 dynamic market ge-0/0/0.0
11:22:33:44:55:66 192.168.1.25 653 dynamic market ge-0/0/10.0
2. DAI Process
Switch inspects arp packets on untrusted ports
check source mac - drop invalid ip – mac entries
80. Copyright 2012 (c)
www.zenithnetworks.com 80
Set DHCP Server interface as Trusted
root@San-Fran# set ethernet-switching-options secure-access-port interface ge-0/0/15 dhcp-trusted
Enable DHCP Snooping
root@San-Fran# set ethernet-switching-options secure-access-port vlan market examine-dhcp
Enable DAI
root@San-Fran# set ethernet-switching-options secure-access-port vlan market arp-inspection
81. Copyright 2012 (c)
www.zenithnetworks.com 81
Check the results of the configuration:
[edit ethernet-switching-options secure-access-port]
root@San-Fran# show
interface ge-0/0/15.0 {
dhcp-trusted;
}
vlan market {
arp-inspection;
examine-dhcp;
}
82. Copyright 2012 (c)
www.zenithnetworks.com 82
root@San-Fran> show dhcp snooping binding
DHCP Snooping Information:
MAC Address IP Address Lease Type VLAN Interface
01:02:03:04:05:06 192.168.1.20 600 dynamic market ge-0/0/0.0
11:22:33:44:55:66 192.168.1.25 653 dynamic market ge-0/0/10.0
root@San-Fran> show arp inspection statistics
Interface Packets received ARP inspection pass ARP inspection failed
ge-0/0/0 0 0 0
ge-0/0/10 0 0 0
The switch compares the ARP requests and replies against the entries
in the DHCP snooping database.
If a MAC address or IP address in the ARP packet does
not match a valid entry in the database, the packet is dropped.
83. Copyright 2012 (c)
www.zenithnetworks.com 83
Prevent IP Spoofing Attacks…. Invalid addresses!!
Uses DHCP Snooping DB
1. Inspect Source IP and Source MAC on untrusted interfaces… Compare to Snoop DB
2. If interface traffic does NOT match Snoop DB….. drop traffic.
84. Copyright 2012 (c)
www.zenithnetworks.com 84
Set DHCP Server interface as Trusted
root@San-Fran# set ethernet-switching-options secure-access-port interface ge-0/0/15 dhcp-trusted
Enable DHCP Snooping on the VLAN
[root@San-Fran# set ethernet-switching-options secure-access-port vlan default examine-dhcp
Enable IP Source Guard on the VLAN
root@San-Fran# set ethernet-switching-options secure-access-port vlan default ip-source-guard
92. Copyright 2012 (c)
www.zenithnetworks.com 92
root@San-Fran> ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1): 56 data bytes
ping: sendto: No route to host
^C
1. root@San-Fran> show vlans accounting ( configuration )
Name Tag Interfaces
accounting 100 None ( no interfaces are within the accounting vlan )
2. root@San-Fran# set vlans accounting interface ge-0/0/0 ( bind ge-0/0/0 to accounting vlan )
3. root@San-Fran# show vlans
accounting {
vlan-id 100;
interface {
ge-0/0/0.0;
}
l3-interface vlan.100;
93. Copyright 2012 (c)
www.zenithnetworks.com 93
root@San-Fran> show vlans accounting ( status )
Name Tag Interfaces
accounting 100 ge-0/0/0.0
root@San-Fran> show interfaces ge-0/0/0 terse
Interface Admin Link Proto Local Remote
ge-0/0/0 up up
ge-0/0/0.0 up up eth-switch
root@San-Fran> ping 192.168.100.1 ( ping L3 vlan interface )
PING 192.168.100.1 (192.168.100.1): 56 data bytes
64 bytes from 192.168.100.1: icmp_seq=0 ttl=64 time=0.192 ms
64 bytes from 192.168.100.1: icmp_seq=1 ttl=64 time=0.229 ms
94. Copyright 2012 (c)
www.zenithnetworks.com 94
Major VLAN Interface Configuration Steps…..
1) Create your Layer Three VLAN Interfaces
2) Configure your corresponding Layer Two VLAN (name, vlan-id, bind L3-L2)
3) On the physical interface…. Assign Layer Two VLAN
4) Show Interface VLAN
5) Ping L3 vlan interface
95. Copyright 2012 (c)
www.zenithnetworks.com 95
1. RSTP is the default L2 spanning-tree protocol.
2. Avoid L2 network loops
3. Fast convergence time v. STP 802.1d
Port State:
F = Forward
B = Block
Port Role:
DESG = (designated)
Alt = Alternate Path
R = Root
96. Copyright 2012 (c)
www.zenithnetworks.com 96
Root Switch
1. Lowest Priority ( default is 32768… range is 0 thru 65535 )
OR
2. Lowest Bridge-ID ( MAC + Priority )
Root Switch Ports: Always… F – D
Other Switches:
Port with lowest cost is F –R
Shared LAN segment:
Switch with Low Bridge-ID is F-D
Other shared LAN switch is B - Alt
97. Copyright 2012 (c)
www.zenithnetworks.com 97
Top Switch
root@Top> show spanning-tree bridge
STP bridge parameters
Context ID : 0
Enabled protocol : RSTP
Root ID : 4096.28:c0:da:2a:2f:c1
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Message age : 0
Number of topology changes : 7
Time since last topology change : 1942 seconds
Topology change initiator : ge-0/0/0.0
Topology change last recvd. from : 28:c0:da:2a:20:03
Local parameters
Bridge ID : 4096.28:c0:da:2a:2f:c1
Extended system ID : 0
Internal instance ID : 0
98. Copyright 2012 (c)
www.zenithnetworks.com 98
root@Top> show spanning-tree interface
Spanning tree interface parameters for instance 0
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ge-0/0/0.0 128:513 128:513 4096.28c0da2a2fc1 20000 FWD DESG
ge-0/0/1.0 128:514 128:514 4096.28c0da2a2fc1 20000 FWD DESG
99. Copyright 2012 (c)
www.zenithnetworks.com 99
root@Left> show spanning-tree interface
Spanning tree interface parameters for instance 0
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ge-0/0/0.0 128:513 128:513 4096.28c0da2a2fc1 20000 FWD ROOT
ge-0/0/2.0 128:515 128:515 32768.28c0da2a2001 20000 FWD DESG
100. Copyright 2012 (c)
www.zenithnetworks.com
10
0
root@Right> show spanning-tree interface
Spanning tree interface parameters for instance 0
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ge-0/0/0.0 128:513 128:514 4096.28c0da2a2fc1 20000 FWD ROOT
ge-0/0/2.0 128:515 128:515 32768.28c0da2a2001 20000 BLK ALT
101. Copyright 2012 (c)
www.zenithnetworks.com
10
1
Enable RSTP…..
root@Top# set protocols ?
Possible completions:
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
.
.
.
> rstp Rapid Spanning Tree Protocol options
> rsvp RSVP options
> sflow SFLOW protocol
> stp Spanning Tree Protocol options
root@Top# set protocols rstp
102. Copyright 2012 (c)
www.zenithnetworks.com
10
2
Used to determine Root Switch
Default is 32768
Lower Bridge-Priority number will be the Root Switch
If default values are used ( tie ), then Root is determined by lowest MAC
[edit]
root@Top# set protocols rstp bridge-priority ?
Possible completions:
<bridge-priority> Priority of the bridge (in increments of 4k - 0, 4k, 8k,.. 60k)
root@Top# set protocols rstp bridge-priority 4
error: bridge-priority: '4': Must be a multiple of 4096
root@Top# set protocols rstp bridge-priority 4096
103. Copyright 2012 (c)
www.zenithnetworks.com
10
3
root@Top> show spanning-tree bridge
STP bridge parameters
Context ID : 0
Enabled protocol : RSTP
Root ID : 4096.28:c0:da:2a:2f:c1
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Message age : 0
Number of topology changes : 7
Time since last topology change : 1942 seconds
Topology change initiator : ge-0/0/0.0
Topology change last recvd. from : 28:c0:da:2a:20:03
Local parameters
Bridge ID : 4096.28:c0:da:2a:2f:c1
Extended system ID : 0
Internal instance ID : 0
104. Copyright 2012 (c)
www.zenithnetworks.com
10
4
root@Left> show spanning-tree bridge
STP bridge parameters
Context ID : 0
Enabled protocol : RSTP
Root ID : 4096.28:c0:da:2a:2f:c1
Root cost : 20000
Root port : ge-0/0/0.0
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Message age : 1
Number of topology changes : 6
Time since last topology change : 9516 seconds
Topology change initiator : ge-0/0/2.0
Topology change last recvd. from : 28:c0:da:2a:2f:c3
Local parameters
Bridge ID : 32768.28:c0:da:2a:20:01 ( Local Bridge-ID )
Extended system ID : 0
Internal instance ID : 0
105. Copyright 2012 (c)
www.zenithnetworks.com
10
5
Discarding, Learning and Forwarding….
Convergence:
- Fast Convergence is desirable
- Configurable interface RSTP parameters
Point-To-Point
- Very fast fail-over to backup link
[edit protocols rstp]
root@Top-Left# set interface ge-0/0/0 mode point-to-point
root@Bottom# set interface ge-0/0/0 mode point-to-point
106. Copyright 2012 (c)
www.zenithnetworks.com
10
6
Discarding, Learning and Forwarding….
Edge-Port
- Always in forwarding state… bypass listening and learning stages
- LAN with no other switches attached
[edit]
root@Left# set protocols rstp interface ge-0/0/10 edge
BPDU Protection!!!
[edit]
root@Left# set protocols rstp bpdu-block-on-edge
108. [edit virtual-chassis]
root# show
preprovisioned;
member 0 {
role routing-engine;
serial-number BM0210466816;
}
member 1 {
role routing-engine;
serial-number BM0210463478;
}
member 2 {
role line-card;
serial-number BM0210466754;
}
Copyright 2012 (c)
www.zenithnetworks.com
10
8
109. root> show virtual-chassis
Preprovisioned Virtual Chassis
Virtual Chassis ID: 31d5.c5f9.4578
Mastership Neighbor List
Member ID Status Serial No Model priority Role ID Interface
0 (FPC 0) Prsnt BM0210466816 ex4200-24t 129 Master* 1 vcp-0
2 vcp-1
1 (FPC 1) Prsnt BM0210463478 ex4200-24t 129 Backup 2 vcp-0
0 vcp-1
2 (FPC 2) Prsnt BM0210466754 ex4200-24t 0 Linecard 0 vcp-0
1 vcp-1
Copyright 2012 (c)
www.zenithnetworks.com
10
9
110. root> show version ( or show version all ) ( or show version member 2 )
fpc0:
--------------------------------------------------------------------------
Model: ex4200-24t
JUNOS Base OS boot [10.3R1.9]
JUNOS Base OS Software Suite [10.3R1.9]
JUNOS Kernel Software Suite [10.3R1.9]
JUNOS Crypto Software Suite [10.3R1.9]
JUNOS Online Documentation [10.3R1.9]
JUNOS Enterprise Software Suite [10.3R1.9]
JUNOS Packet Forwarding Engine Enterprise Software Suite [10.3R1.9]
JUNOS Routing Software Suite [10.3R1.9]
JUNOS Web Management [10.3R1.9]
Copyright 2012 (c)
www.zenithnetworks.com
11
0
111. fpc1:
--------------------------------------------------------------------------
Model: ex4200-24t
JUNOS Base OS boot [10.3R1.9]
JUNOS Base OS Software Suite [10.3R1.9]
JUNOS Kernel Software Suite [10.3R1.9]
JUNOS Crypto Software Suite [10.3R1.9]
JUNOS Online Documentation [10.3R1.9]
JUNOS Enterprise Software Suite [10.3R1.9]
JUNOS Packet Forwarding Engine Enterprise Software Suite [10.3R1.9]
JUNOS Routing Software Suite [10.3R1.9]
JUNOS Web Management [10.3R1.9]
Copyright 2012 (c)
www.zenithnetworks.com
11
1
112. fpc2:
--------------------------------------------------------------------------
Model: ex4200-24t
JUNOS Base OS boot [10.3R1.9]
JUNOS Base OS Software Suite [10.3R1.9]
JUNOS Kernel Software Suite [10.3R1.9]
JUNOS Crypto Software Suite [10.3R1.9]
JUNOS Online Documentation [10.3R1.9]
JUNOS Enterprise Software Suite [10.3R1.9]
JUNOS Packet Forwarding Engine Enterprise Software Suite [10.3R1.9]
JUNOS Routing Software Suite [10.3R1.9]
JUNOS Web Management [10.3R1.9]
Copyright 2012 (c)
www.zenithnetworks.com
11
2
113. root> request system reboot ?
Possible completions:
<[Enter]> Execute this command
all-members Reboot all virtual chassis members
at Time at which to perform the operation
in Number of minutes to delay before operation
local Reboot local virtual chassis member
media Boot media for next boot
member Reboot specific virtual chassis member (0..9)
message Message to display to all users
slice Partition on boot media to boot from
| Pipe through a command
Copyright 2012 (c)
www.zenithnetworks.com
11
3
114. root> show interfaces terse
Interface Admin Link Proto Local Remote
ge-0/0/0 up down
ge-0/0/0.0 up down eth-switch
ge-0/0/1 up down
ge-0/0/1.0 up down eth-switch
……..
……..
ge-1/0/0 up down
ge-1/0/1 up down 0
ge-1/0/2 up down
……
…… 1
ge-2/0/0 up down
ge-2/0/1 up down 2
ge-2/0/2 up down
Copyright 2012 (c)
www.zenithnetworks.com
11
4
115. root> show interfaces terse | match ge-2
ge-2/0/0 up down
ge-2/0/1 up down
ge-2/0/2 up down
ge-2/0/3 up down
ge-2/0/4 up down
ge-2/0/5 up down
ge-2/0/6 up down
ge-2/0/7 up down
ge-2/0/8 up down
2
Copyright 2012 (c)
www.zenithnetworks.com
11
5
116. root> show virtual-chassis ?
Possible completions:
<[Enter]> Execute this command
active-topology Virtual chassis active topology
device-topology PFE device topology
fast-failover Fast failover status
login
protocol Show virtual chassis protocol information
status Virtual chassis information
vc-path Show virtual-chassis packet path
vc-port Virtual chassis port information
| Pipe through a command
Copyright 2012 (c)
www.zenithnetworks.com
11
6
117. root> show virtual-chassis vc-port ?
Possible completions:
<[Enter]> Execute this command
all-members Show virtual chassis ports on all virtual chassis members
local Show virtual chassis ports on local virtual chassis member
member Show virtual chassis ports on specific virtual chassis member
statistics Show virtual chassis port statistics
| Pipe through a command
Copyright 2012 (c)
www.zenithnetworks.com
11
7
118. root> show virtual-chassis vc-port all-members
fpc0:
--------------------------------------------------------------------------
Interface Type Trunk Status Speed Neighbor 128Gbps Backplane
or ID (mbps) ID Interface
PIC / Port
vcp-0 Dedicated 2 Up 32000 1 vcp-1
vcp-1 Dedicated 1 Up 32000 2 vcp-0
fpc1:
--------------------------------------------------------------------------
Interface Type Trunk Status Speed Neighbor
or ID (mbps) ID Interface
PIC / Port
vcp-0 Dedicated 2 Up 32000 2 vcp-1
vcp-1 Dedicated 1 Up 32000 0 vcp-0
fpc2:
--------------------------------------------------------------------------
Interface Type Trunk Status Speed Neighbor
or ID (mbps) ID Interface
PIC / Port
vcp-0 Dedicated 2 Up 32000 0 vcp-1
vcp-1 Dedicated 1 Up 32000 1 vcp-0
Copyright 2012 (c)
www.zenithnetworks.com
11
8
119. root> show virtual-chassis vc-port statistics ?
Possible completions:
<[Enter]> Execute this command
<interface-name> Name of virtual chassis port
vcp-0
vcp-1
all-members Show virtual chassis ports statistics on all virtual chassis members
brief Display brief output (default)
detail Display detailed output
extensive Display extensive output
local Show virtual chassis ports statistics on local virtual chassis member
member Show virtual chassis ports statistics on specific virtual chassis member
| Pipe through a command
Copyright 2012 (c)
www.zenithnetworks.com
11
9
120. root> show virtual-chassis vc-port statistics vcp-0 member 2
fpc2:
--------------------------------------------------------------------------
Interface Input Octets/Packets Output Octets/Packets
vcp-0 9125591 / 56412 9531594 / 56437
VCCP packets are being TX / RX
Copyright 2012 (c)
www.zenithnetworks.com
12
0
121. root> show virtual-chassis protocol adjacency
fpc0:
--------------------------------------------------------------------------
Interface System State Hold (secs)
internal-0/27 28c0.da2a.2fc1 Up 65535 ( packet forwarding engine 1 )
internal-1/24 28c0.da2a.2fc0 Up 65535 ( packet forwarding engine 2 )
vcp-0.32768 28c0.da2e.93c1 Up 57 ( vcp port )
vcp-1.32768 28c0.da2a.2000 Up 58 ( vcp port )
fpc1:
--------------------------------------------------------------------------
Interface System State Hold (secs)
internal-0/27 28c0.da2e.93c1 Up 65535 ( packet forwarding engine 1 )
internal-1/24 28c0.da2e.93c0 Up 65535 ( packet forwarding engine 2 )
vcp-0.32768 28c0.da2a.2001 Up 58 ( vcp port )
vcp-1.32768 28c0.da2a.2fc0 Up 58 ( vcp port )
fpc2:
--------------------------------------------------------------------------
Interface System State Hold (secs)
internal-0/27 28c0.da2a.2001 Up 65535 ( packet forwarding engine 1 )
internal-1/24 28c0.da2a.2000 Up 65535 ( packet forwarding engine 2 )
vcp-0.32768 28c0.da2a.2fc1 Up 58 ( vcp port )
vcp-1.32768 28c0.da2e.93c0 Up 58 ( vcp port )
Copyright 2012 (c)
www.zenithnetworks.com
12
1
122. root> show virtual-chassis protocol database member 1
fpc1:
--------------------------------------------------------------------------
LSP ID Sequence Checksum Lifetime
28c0.da2a.2000.00-00 0xafc 0xc08f 116
28c0.da2a.2001.00-00 0xafa 0xea08 116
28c0.da2a.2fc0.00-00 0xaf6 0x5bd4 116
28c0.da2a.2fc1.00-00 0xafa 0x6f45 115
28c0.da2e.93c0.00-00 0xaf9 0x4f84 116
28c0.da2e.93c1.00-00 0xaff 0x4580 117
6 LSPs ( VC has a total of 6 PFE’s… across 3 ex4200-24 )
Copyright 2012 (c)
www.zenithnetworks.com
12
2
123. show virtual-chassis vc-path source-interface ge-0/0/0 destination-interface ge-2/0/0
vc-path from ge-0/0/0 to ge-2/0/0
Hop Member PFE-Device Interface
0 0 1 ( my local pfe ) ge-0/0/0 ( source )
1 2 6 ( swt #2 vcp port pfe ) vcp-1 (conn in between mem 0 and mem 2)
2 2 7 ( swt #2 local pfe ) ge-2/0/0 ( destination )
0
1
2
Copyright 2012 (c)
www.zenithnetworks.com
12
3