IPv6-IPv4 Compatible
Adress format : ::A.B.C.D/96
IPv4 Tunnel Source : IPv4 source interface
IPv4 Tunnel Destination : Deducted from the IPv6-Ipv4 compatible addess
IPv6 tunnel interface : Automatically generated from IPv4 Tunnel Source
Configuration
int tunnel 0
tunnel source int lo 0
tunnel mode ipv6ip auto-tunnel
6To4
Adress format : 2002:ipv4-border-router:/48
IPv4 Tunnel Source : IPv4 source interface
IPv4 Tunnel Destination : Deducted from the 6to4 addess
IPv6 tunnel interface : 2002:ipv4-border-router::/48
Configuration
int tunnel 0
tunnel source int lo 0
tunnel mode ipv6ip 6to4
ipv6 address 2002:ipv4-source-address::1/64
ipv6 router 2002::/16 tunnel 0
ISATAP
Adress format : ipv6-global-address:0000:5EFE:ipv4-border-router/128
IPv4 Tunnel Source : IPv4 source interface
IPv4 Tunnel Destination : Deducted from the ipv4 embedded address on ISATAP addess
IPv6 tunnel interface : Generated from the configured ipv6 prefix + ipv4-source-address
Configuration
int tunnel 0
tunnel source int lo 0
tunnel mode ipv6ip isatap
ipv6 address 2001:x:y::/64 eui-64
jeudi 8 octobre 2009
mardi 29 septembre 2009
Protocols Overhead
Ethernet : 38 bytes
Ethernet + 802.1q : 42 bytes
IPv4 : 20 bytes
IPv6 : 40 bytes
TCP : 20 bytes
Tcp timestamps : +12 bytes
UDP : 8 bytes
MPLS : 4 octets
Ethernet + 802.1q : 42 bytes
IPv4 : 20 bytes
IPv6 : 40 bytes
TCP : 20 bytes
Tcp timestamps : +12 bytes
UDP : 8 bytes
MPLS : 4 octets
lundi 28 septembre 2009
Priority Queueing
In priority queueing, packets are assigned to one of the 4 availables queues according to protocol type, acl or entering interface. The differents queues are served in a strict priority fashion, that is when a packet has to been sent, queue 1 is always served before until limit or emptied. It could lead to bandwidth starvation (onlys queue 1 is served)
Configuration
Assign the Priority-list to an interface
interface fa1/0
priority-group list-num
Assign packet to a queue
priority-list list-num protocol protocol high|medium|normal|low list|tcp|udp list-or-proto-num
OR
priority-list list-num interface int-typ int-num high|medium|normal|low
Configure queue length
priority-list list-num limit high-limit medium-limit normal-limit low-limit
Configuration
Assign the Priority-list to an interface
interface fa1/0
priority-group list-num
Assign packet to a queue
priority-list list-num protocol protocol high|medium|normal|low list|tcp|udp list-or-proto-num
OR
priority-list list-num interface int-typ int-num high|medium|normal|low
Configure queue length
priority-list list-num limit high-limit medium-limit normal-limit low-limit
Custom Queuing
It permits to share bandwidth accross up to 16 different queues according to protocol, acl, entering interface. The sharing is done by maximum packet count by queues or average bytes count by queues.
Configuration :
Apply on interface
interface fa0/1
custom-queue-list list-num
Define queue size
custom-queue-list list-num queue queue-num limit packet-limit
OR
custom-queue-list list-num queue queue-num byte-count byte-limit
Assign packet to queues
queue-list list-number protocol protocol-name queue-number list|tcp|udp keyword-value
OR
queue-list list-number interface int-type int-num queue-number
Configuration :
Apply on interface
interface fa0/1
custom-queue-list list-num
Define queue size
custom-queue-list list-num queue queue-num limit packet-limit
OR
custom-queue-list list-num queue queue-num byte-count byte-limit
Assign packet to queues
queue-list list-number protocol protocol-name queue-number list|tcp|udp keyword-value
OR
queue-list list-number interface int-type int-num queue-number
lundi 21 septembre 2009
Integrated Routing & Bridging
IRB permits to bridge between to router interfaces, create a virtual interface (BVI) and permit to route via this BVI between the bridged interface and the other router interface.
In this lab you want to bridge between 2 vlans :
interface Ethernet0/0
no ip address
half-duplex
!
interface Ethernet0/0.16
encapsulation dot1Q 16
bridge-group 1
!
interface Ethernet0/0.36
encapsulation dot1Q 36
bridge-group 1
You now need to enable a spanning tree protocol on the group
bridge 1 protocol ieee
It's now possible to ping machine between vlan 36 and vlan 16 (same broadcast domain)
Now to route between vlan 16/36 to other router interface, you need to create a virtual interface with an IP :
interface BVI1
ip address 136.1.136.6 255.255.255.0
bridge 1 route ip
From vlan 16/36 you could now ping BVi1 and behind
In this lab you want to bridge between 2 vlans :
interface Ethernet0/0
no ip address
half-duplex
!
interface Ethernet0/0.16
encapsulation dot1Q 16
bridge-group 1
!
interface Ethernet0/0.36
encapsulation dot1Q 36
bridge-group 1
You now need to enable a spanning tree protocol on the group
bridge 1 protocol ieee
It's now possible to ping machine between vlan 36 and vlan 16 (same broadcast domain)
Now to route between vlan 16/36 to other router interface, you need to create a virtual interface with an IP :
interface BVI1
ip address 136.1.136.6 255.255.255.0
bridge 1 route ip
From vlan 16/36 you could now ping BVi1 and behind
samedi 19 septembre 2009
Policy Based Routing
The prupose is to defined a specified route different from the one in the routing table for a type of traffic.
For example 2 routers are interconnected by 2 differents links for backup purpose but you want to use the backup for FTP traffic in order to not overload the primary line.
1 Define the traffic to be matched
access-list 198 permit tcp any any eq ftp
class-map match-all PBR
match acces-group 198
2 Define the new route for the matched traffics
route-map PBR permit 10
match ip address 198
set ip next-hop X.X.X.X
3 Apply on the incoming interface
int fa0/0
ip policy route-map PBR
Remark : If you want the PBR rule applies to the traffic for/from the router itself add thje following command
ip local policy route-map PBR
Verification : you could verify matched traffic with sh route-map command
route-map PBR, permit, sequence 10
Match clauses:
ip address (access-lists): 198
Set clauses:
ip next-hop 132.1.23.3
Policy routing matches: 35 packets, 3990 bytes
route-map PBR, permit, sequence 20
Match clauses:
Set clauses:
Policy routing matches: 20 packets, 1740 bytes
For example 2 routers are interconnected by 2 differents links for backup purpose but you want to use the backup for FTP traffic in order to not overload the primary line.
1 Define the traffic to be matched
access-list 198 permit tcp any any eq ftp
class-map match-all PBR
match acces-group 198
2 Define the new route for the matched traffics
route-map PBR permit 10
match ip address 198
set ip next-hop X.X.X.X
3 Apply on the incoming interface
int fa0/0
ip policy route-map PBR
Remark : If you want the PBR rule applies to the traffic for/from the router itself add thje following command
ip local policy route-map PBR
Verification : you could verify matched traffic with sh route-map command
route-map PBR, permit, sequence 10
Match clauses:
ip address (access-lists): 198
Set clauses:
ip next-hop 132.1.23.3
Policy routing matches: 35 packets, 3990 bytes
route-map PBR, permit, sequence 20
Match clauses:
Set clauses:
Policy routing matches: 20 packets, 1740 bytes
vendredi 18 septembre 2009
Pim NBMA Mode
On the following example. A server is multicasting over a NBMA network. There is only one member of the group on R1. Pim sparse mode is configured on ethernet and serial line. R2 is the manual RP for every groups.

R1
ip multicast-routing
ip pim rp-address 150.1.2.2
interface Serial1/0
ip address 132.1.0.1 255.255.255.0
ip pim sparse-mode
interface fa0/0
ip address 132.1.17.7 255.255.255.0
ip pim sparse-mode
ip igmp join-group 228.28.28.28
R2
ip multicast-routing
ip pim rp-address 150.1.2.2
interface Serial1/0
ip address 132.1.0.2 255.255.255.0
ip pim sparse-mode
interface fa0/0
ip address 132.1.6.6 255.255.255.0
ip pim sparse-mode
int lo0
ip address 150.1.2.2
ip pim sparse-mode
R3
ip multicast-routing
ip pim rp-address 150.1.2.2
interface Serial1/0
ip address 132.1.0.3 255.255.255.0
ip pim sparse-mode
interface fa0/0
ip address 132.1.18.8 255.255.255.0
ip pim sparse-mode
The result of debug mpacket on R3 & R1 when a ping is done from r2 ethernet interface show that the packet is received from both R1 & R3
Rack1R3#*Mar 1 02:26:59.307: IP(0): s=132.1.6.6 (Serial1/0) d=228.28.28.28 id=298, ttl=
253, prot=1, len=104(100), mroute olist null
Rack1R1#*Mar 1 02:27:57.951: IP(0): s=132.1.6.6 (Serial1/0) d=228.28.28.28 (FastEtherne
t0/0) id=298, ttl=253, prot=1, len=100(100), mforward
R2 mroute shows that the OIL is s1/0 so the mcast packet is replicated on every dlci attached to s1/0:
(132.1.6.6, 228.28.28.28), 00:03:13/00:01:48, flags: T
Incoming interface: FastEthernet0/0, RPF nbr 132.1.26.6
Outgoing interface list:
Serial1/0, Forward/Sparse, 00:03:13/00:03:22
In order to avoid that use the PIM nbma-mode on R2 s1/0 interface:
interface s1/0
ip pim nbma-mode
Now, the result of debug mpacket on R3 & R1 when a ping is done from r2 ethernet interface show that the packet is received only on R1 as R3 doesn't have members.
Rack1R3#
Rack1R1#*Mar 1 02:27:57.951: IP(0): s=132.1.6.6 (Serial1/0) d=228.28.28.28 (FastEtherne
t0/0) id=298, ttl=253, prot=1, len=100(100), mforward
And R2 mroute shows that the OIL has now the the output interface s1/0 and the IP of the PIM neighbor so the mcast packet is only sent to this neighbor :
(132.1.6.6, 228.28.28.28), 00:00:16/00:03:17, flags: T
Incoming interface: FastEthernet0/0, RPF nbr 132.1.26.6
Outgoing interface list:
Serial1/0, 132.1.0.1, Forward/Sparse, 00:00:15/00:03:14
Remarks : when debugging with debug ip mpacket it's important to disable mroute-cache on every interface, otherwise only the first packet will be seen.

R1
ip multicast-routing
ip pim rp-address 150.1.2.2
interface Serial1/0
ip address 132.1.0.1 255.255.255.0
ip pim sparse-mode
interface fa0/0
ip address 132.1.17.7 255.255.255.0
ip pim sparse-mode
ip igmp join-group 228.28.28.28
R2
ip multicast-routing
ip pim rp-address 150.1.2.2
interface Serial1/0
ip address 132.1.0.2 255.255.255.0
ip pim sparse-mode
interface fa0/0
ip address 132.1.6.6 255.255.255.0
ip pim sparse-mode
int lo0
ip address 150.1.2.2
ip pim sparse-mode
R3
ip multicast-routing
ip pim rp-address 150.1.2.2
interface Serial1/0
ip address 132.1.0.3 255.255.255.0
ip pim sparse-mode
interface fa0/0
ip address 132.1.18.8 255.255.255.0
ip pim sparse-mode
The result of debug mpacket on R3 & R1 when a ping is done from r2 ethernet interface show that the packet is received from both R1 & R3
Rack1R3#*Mar 1 02:26:59.307: IP(0): s=132.1.6.6 (Serial1/0) d=228.28.28.28 id=298, ttl=
253, prot=1, len=104(100), mroute olist null
Rack1R1#*Mar 1 02:27:57.951: IP(0): s=132.1.6.6 (Serial1/0) d=228.28.28.28 (FastEtherne
t0/0) id=298, ttl=253, prot=1, len=100(100), mforward
R2 mroute shows that the OIL is s1/0 so the mcast packet is replicated on every dlci attached to s1/0:
(132.1.6.6, 228.28.28.28), 00:03:13/00:01:48, flags: T
Incoming interface: FastEthernet0/0, RPF nbr 132.1.26.6
Outgoing interface list:
Serial1/0, Forward/Sparse, 00:03:13/00:03:22
In order to avoid that use the PIM nbma-mode on R2 s1/0 interface:
interface s1/0
ip pim nbma-mode
Now, the result of debug mpacket on R3 & R1 when a ping is done from r2 ethernet interface show that the packet is received only on R1 as R3 doesn't have members.
Rack1R3#
Rack1R1#*Mar 1 02:27:57.951: IP(0): s=132.1.6.6 (Serial1/0) d=228.28.28.28 (FastEtherne
t0/0) id=298, ttl=253, prot=1, len=100(100), mforward
And R2 mroute shows that the OIL has now the the output interface s1/0 and the IP of the PIM neighbor so the mcast packet is only sent to this neighbor :
(132.1.6.6, 228.28.28.28), 00:00:16/00:03:17, flags: T
Incoming interface: FastEthernet0/0, RPF nbr 132.1.26.6
Outgoing interface list:
Serial1/0, 132.1.0.1, Forward/Sparse, 00:00:15/00:03:14
Remarks : when debugging with debug ip mpacket it's important to disable mroute-cache on every interface, otherwise only the first packet will be seen.
Inscription à :
Articles (Atom)