Here is advanced example implement CAR rate policies for MAC address.
#### Define mac address in access-list
IOS(config)#
access-list rate-limit 100 ca01.0412.0039
end
IOS#show access-list rate-limit 100
Rate-limit access list 100
CA01.0412.0039
#### Set CAR rate policies for 1 Mbps or 1024 Kbps & Apply to interface
IOS(config-if)#
interface FastEthernet1/1
description To-Router
ip address 192.168.100.1 255.255.255.0
rate-limit input access-group rate-limit 100 1024000 128000 128000 conform-action transmit exceed-action drop
#### Verify CAR
IOS#show interfaces FastEthernet1/1 rate-limit
FastEthernet1/1 To-Router
Input
matches: access-group rate-limit 100
params: 1024000 bps, 128000 limit, 128000 extended limit
conformed 0 packets, 0 bytes; action: transmit
exceeded 0 packets, 0 bytes; action: drop
last packet: 1497096ms ago, current burst: 0 bytes
last cleared 00:02:14 ago, conformed 0 bps, exceeded 0 bps
Saturday, August 10, 2013
Sunday, August 4, 2013
Set Date Time on JunOS (Juniper Operating Sytem)
This intruction of set date time on JunOS.
#### Set Manual Date Time August 4, 2013 and 07:30:00 PM.
user@JunOS> set date ?
Possible completions:
ntp Set system date and time using Network Time Protocol servers
user@JunOS> set date 201308041930.00
Sun Aug 4 19:30:00 UTC 2013
#### Set Auto Date from NTP server
user@JunOS> set date ntp ?
Possible completions:
<[Enter]> Execute this command
IP addresses of NTP servers
source-address Source address to use
| Pipe through a command
#### Failed
user@JunOS> set date ntp 192.168.0.1
4 Aug 19:01:05 ntpdate[4562]: no server suitable for synchronization found
#### Success
user@JunOS> set date ntp 192.168.0.2
4 Aug 19:30:34 ntpdate[4571]: step time server 192.168.0.2 offset -38185.458839 sec
#### Verify
user@JunOS> show system uptime
Current time: 2013-08-04 19:31:20 UTC
System booted: 2013-08-03 16:14:37 UTC (15:16:43 ago)
Protocols started: 2013-08-03 16:15:08 UTC (15:16:12 ago)
Last configured: 2013-08-04 03:21:11 UTC (04:10:09 ago) by user
7:31AM up 15:17, 1 user, load averages: 0.00, 0.00, 0.00
Ref. Set Date Time on Cisco Router
#### Set Manual Date Time August 4, 2013 and 07:30:00 PM.
user@JunOS> set date ?
Possible completions:
ntp Set system date and time using Network Time Protocol servers
user@JunOS> set date 201308041930.00
Sun Aug 4 19:30:00 UTC 2013
#### Set Auto Date from NTP server
user@JunOS> set date ntp ?
Possible completions:
<[Enter]> Execute this command
source-address Source address to use
| Pipe through a command
#### Failed
user@JunOS> set date ntp 192.168.0.1
4 Aug 19:01:05 ntpdate[4562]: no server suitable for synchronization found
#### Success
user@JunOS> set date ntp 192.168.0.2
4 Aug 19:30:34 ntpdate[4571]: step time server 192.168.0.2 offset -38185.458839 sec
#### Verify
user@JunOS> show system uptime
Current time: 2013-08-04 19:31:20 UTC
System booted: 2013-08-03 16:14:37 UTC (15:16:43 ago)
Protocols started: 2013-08-03 16:15:08 UTC (15:16:12 ago)
Last configured: 2013-08-04 03:21:11 UTC (04:10:09 ago) by user
7:31AM up 15:17, 1 user, load averages: 0.00, 0.00, 0.00
Ref. Set Date Time on Cisco Router
Friday, August 2, 2013
Set QoS CAR on Juniper
Previous posting about set CAR on Cisco, Another example for Juniper.
#### Set CAR rate policies for 1 Mbps or 1024 Kbps
set firewall policer Set-1M if-exceeding bandwidth-limit 1024000
set firewall policer Set-1M if-exceeding burst-size-limit 128k
set firewall policer Set-1M then discard
#### Set CAR rate policies for 4 Mbps or 4096 Kbps
set firewall policer Set-4M if-exceeding bandwidth-limit 4096000
set firewall policer Set-4M if-exceeding burst-size-limit 512k
set firewall policer Set-4M then discard
#### Create filter with rate policies
set firewall filter Car-1M term To-Router-1M then policer Set-1M
set firewall filter Car-1M term To-Router-1M then accept
After set CAR rate policies and filter, apply filter to interface?
#### Apply CAR to interface
set interfaces ge-1/0/0 unit 0 description "To-Router"
set interfaces ge-1/0/0 unit 0 family inet filter input Car-1M
set interfaces ge-1/0/0 unit 0 family inet filter output Car-1M
set interfaces ge-1/0/0 unit 0 family inet address 192.168.100.1/30
#### Verify filter (add count parameter)
[edit]
user@JunOS# set firewall filter Car-1M term To-Router-1M then count Car-1M
user@JunOS> show firewall filter Car-1M counter Car-1M
Filter: Car-1M
Counters:
Name Bytes Packets
Car-1M 3952 58
user@JunOS> show firewall filter Car-1M counter Car-1M
Filter: Car-1M
Counters:
Name Bytes Packets
Car-1M 4224 62
#### Set CAR rate policies for 1 Mbps or 1024 Kbps
set firewall policer Set-1M if-exceeding bandwidth-limit 1024000
set firewall policer Set-1M if-exceeding burst-size-limit 128k
set firewall policer Set-1M then discard
#### Set CAR rate policies for 4 Mbps or 4096 Kbps
set firewall policer Set-4M if-exceeding bandwidth-limit 4096000
set firewall policer Set-4M if-exceeding burst-size-limit 512k
set firewall policer Set-4M then discard
#### Create filter with rate policies
set firewall filter Car-1M term To-Router-1M then policer Set-1M
set firewall filter Car-1M term To-Router-1M then accept
After set CAR rate policies and filter, apply filter to interface?
#### Apply CAR to interface
set interfaces ge-1/0/0 unit 0 description "To-Router"
set interfaces ge-1/0/0 unit 0 family inet filter input Car-1M
set interfaces ge-1/0/0 unit 0 family inet filter output Car-1M
set interfaces ge-1/0/0 unit 0 family inet address 192.168.100.1/30
#### Verify filter (add count parameter)
[edit]
user@JunOS# set firewall filter Car-1M term To-Router-1M then count Car-1M
user@JunOS> show firewall filter Car-1M counter Car-1M
Filter: Car-1M
Counters:
Name Bytes Packets
Car-1M 3952 58
user@JunOS> show firewall filter Car-1M counter Car-1M
Filter: Car-1M
Counters:
Name Bytes Packets
Car-1M 4224 62
Subscribe to:
Posts (Atom)
