Diberdayakan oleh Blogger.
Unduh Adobe Flash player

EtherChannel Part 3 (Mikrotik vs Cisco Etherchannel)

|              Fa0/1   |                      | ether1                   |
| Cisco  |  Fa0/2   |      =======    |  ether2  |  Mikrotik  |
|              Fa0/3   |                      | ether3                   | 


Cisco yang digunakan adalah C3750 yang support layer 2 dan layer 3.
Mikrotik yang digunakan RB750.

Konfigurasi di Cisco:
(config)#interface range fa0/1 - 3
(config-if-range)#channel-group 1 mode active
--> akan muncul interface Po1

(config)#interface Po1
(config-if)#ip address 10.10.10.1 255.255.255.252

Konfigurasi di Mikrotik:
/interface bonding add name=bonding1 slaves=ether1,ether2,ether3
/ip address add address=10.10.10.2/30 interface=bonding1

Brocade VS Cisco Port Mirroring

Below how to configure port mirroring and monitoring on Brocade :
1. Port that it's traffic will be monitor
Brocade(config)#interface ethernet 1/2/11
Brocade(config-if-e1000-11)#monitor ethernet 1/2/4 ?
  both     Both incoming and outgoing packets
  input    Incoming packets
  output   Outgoing packets

Brocade(config-if-e1000-11)#monitor ethernet 1/2/4 both

2. Port that will be connected to Wireshark or other traffic analyzer
Brocade(config)#interface ethernet 1/2/11
Brocade(config-if-e1000-11)#monitor ethernet 1/2/4 ?
  both     Both incoming and outgoing packets
  input    Incoming packets
  output   Outgoing packets

Brocade(config-if-e1000-11)#monitor ethernet 1/2/4 both
-----------------------------------------------------------------------------------------
Below how to configure port mirroring and monitoring on Cisco : 
1. Port that it's traffic will be monitor
C2950(config)#monitor session 1 source interface fastethernet 0/2 

2. Port that will be connected to Wireshark or other traffic analyzer
C2950(config)#monitor session 1 destination interface fastethernet 0/3

3. You can check the configuration below:
C2950#show monitor session 1
    Session 1
    ---------
    Source Ports:
        RX Only:       None
        TX Only:       None
        Both:          Fa0/2
    Destination Ports: Fa0/3 




Hope will be usefull.

Syawal Nugrahanto

Border Gateway Protocol eBGP, iBGP, & Configuration

BGP, or Border Gateway Protocol is an external, dynamic routing protocol. It is most often used between ISPs and between enterprises and their service providers. BGP is literally the routing protocol of the Internet because it connects independent networks together, enabling end-to-end transport. Scalability and stability are BGP’s focus, not speed – as a result it behaves very differently than most other routing protocols.
BGP is recommended whenever multihoming is a requirement (dual ISP connections to different carriers), when route path manipulation is needed, and in transit Autonomous Systems.

A Quick Overview

  • Routers running BGP are called BGP speakers.
  • BGP uses autonomous system numbers to keep track of different administrative domains. 1-64511 are public, 64512-65535 are private.
  • BGP is used to connect IGPs, interior gateway protocols like OSPF and EIGRP. Routing between Autonomous Systems is referred to as interdomain routing.
  • The administrative distance for eBGP routes is 20, iBGP is 200.
  • BGP neighbors are called “peers” and must be statically assigned.
  • Peers receive incremental, triggered updates as well as keepalives using TCP port 179.
  • BGP is sometimes referred to as a “path-vector” protocol because its route to a network uses AS numbers on the path to the destination.
  • BGP uses it’s path-vector attributes to help in loop prevention. When an update leaves an AS, the AS number is prepended to the update along with all the other AS numbers that have spread the update.
  • When a BGP router receives an update, it first scans through the list of AS numbers. If it sees it own AS number, the update is discarded.

BGP Databases

Like most modern routing protocols, BGP has two separate databases – a neighbor database and a BGP-specific database.
Neighbor Database
Lists all of the configured BGP neighbors
Router# show ip bgp summary
BGP Database
Lists all networks known by BGP along with their attributes.
Router# show ip bgp

BGP Message Types

There are four different BGP message types.
Open
After a BGP neighbor is configured, the router sends an open message to establish peering with the neighbor.
Update
The type of message used to transfer routing information between peers.
Keepalive
BGP peers send keepalive messages every 60 seconds by default to maintain active neighbor status.
Notification
If a problem occurs and a BGP peer connection must be dropped, a notification message is sent and the session is closed.

Internal vs. External

iBGP, or internal BGP is a peering relationship between BGP routers within the same autonomous system. eBGP, or external BGP describes a peering relationship between BGP routers in different autonomous systems. It is an important distinction to make.
In the diagram below, R1 and R2 are eBGP peers. R2 and R3 and iBGP peers.
BGP AS Diagram

BGP Next-Hop Self

When you have BGP neighbors peering between autonomous systems like R1 and R2 above, BGP uses the the IP address of the router the update was received from as its “next hop”. When a router receives an update from an eBGP neighbor, it must pass the update to its iBGP neighbors with-out modifying the next hop attribute.
The next-hop IP address is the IP address of the edge router belonging to the next-hop autonomous system.
For example, let’s say R1 sends an update to R2 from its 10.1.1.1 serial interface. R2 must keep the next-hop IP set as 10.1.1.1 when it passes the update along to R3, its iBGP peer. The problem is that R3 does not know about 10.1.1.1 and so it cannot use it as its next hop address.
The neighbor [IP address] next-hop-self command solves the problem by advertising itself as the next-hop address. In this example, it would be applied to R2 so any updates passed along to R3 would use an R2 address as the next-hop.
R2(config)# router bgp 65300 R2(config-router)# neighbor 10.2.2.2 next-hop-self R2(config)# exit

BGPs Synchronization Rule

The BGP synchronization rule states that a BGP router cannot use or forward new route updates it learns from iBGP peers unless it knows about the network from another source, like an IGP or static route.
The idea is to prevent using or forwarding on information that is unreliable and cannot be verified. Remember, BGP prefers reliability and stability over using the newest, fastest route.
This means that iBGP peers will not update each other unless an IGP is running under the hood. To remove the limitation, use the no synchronization command under BGP configuration mode. recent versions of IOS have it disabled by default, but it is important topic to understand.

Resetting BGP Sessions

Internet routers running BGP have enormous routing tables. When a filter is applied, like a route map, changes to BGP attributes occur. Those changes could affect many of the routes already in the routing table from BGP. Because BGP’s network list is usually very long, applying a route map or prefix list after BGP has converged can be disastrous. The router would have to check the filter against every possible route and attribute combination.
To make matters worse, if it were to apply the filters and pull routes back from neighbors, those changes could then cause another reconvergence – and on and on. In an effort to avoid that scenario (BGP loves stability), BGP will only apply attribute and network changes to routes AFTER the filter has been applied. All existing routes stay unchanged.
If the network administrator decides that the filter needs to be applied to all routes, then the BGP instance must be reset – forcing the entire BGP table to pass through the filter. There are three ways to do this:
  • Hard reset
  • Soft reset
  • Route refresh
The hard and soft reset options aren’t discussed here because they are not directly relevant to the exam. You should know though, that both options are extremely memory-taxing on the router as all the routes must be recomputed. Route refresh was developed to solve the high memory problems, while still forcing a reset.
The following command performs the BGP route refresh:
Router# clear ip bgp [ * | neighbor-address]

BGP Configuration

Enabling BGP
Like other routing protocols, BGP must be enabled with the router command. Make sure to include the AS number.
R1(config)# router bgp autonomous-system-number
BGP Peering
Each neighbor must be statically assigned using the neighbor command. If the AS number matches the local router’s, it is an iBGP connection. If the AS number is different, it is an eBGP connection.
R1(config-router)# neighbor ip-address remote-as autonomous-system-number
If a router has a long list of directly connected neighbors, the BGP configuration can start to get long and difficult to follow – especially as neighbor policies are applied. Peer groups solve that.
Peer groups
BGP Peer groups are groups of peer neighbors that share a common update policy. Updating an entire group of neighbor statements can then be done with one command. Much easier for large BGP networks. Think of a peer group as a logical grouping of routers that are grouped under a single name to make changes faster and configurations shorter. Like OUs in Active Directory.
Peer groups not only reduce the number of lines of configuration, but they reduce the ease the overhead of the router. A BGP update process normally runs for each neighbor. If a peer group is configured, a single update process runs for all routers in the group. Notice that this means that all of the router inside a peer group must be either all iBGP or eBGP neighbors.
Basic neighbor configuration example:
R1(config)# router bgp 65300 R1(config-router)# neighbor 10.1.1.1 remote-as 65300 R1(config-router)# neighbor 10.1.2.1 remote-as 65300 R1(config-router)# neighbor 10.1.3.1 remote-as 65300
Peer group configuration example:
R1(config)# router bgp 65300 R1(config-router)# neighbor MINE peer-group R1(config-router)# neighbor MINE remote-as 65300 R1(config-router)# neighbor 10.1.1.1 peer-group MINE R1(config-router)# neighbor 10.1.2.1 peer-group MINE R1(config-router)# neighbor 10.1.3.1 peer-group MINE
BGP Source Address
R1 in the diagram below has two different options when it comes to peering to R2. It can peer to the physical interface IP address, 10.1.1.2 or it can peer to R2′s loopback interface, 192.168.2.2.
BGP Source Address Diagram
If a peer relationship is made using the physical interface as the source address, problems can occur if the interface goes down. In this scenario, even if R2′s 10.1.1.2 interface drops, it still has connectivity to R2′s networks via R3 and R2′s other physical interface. Even though an IGP would still show R2′s network as accessible, the BGP peer relationship would drop because R1 cannot reach its peering address with R2.
Most implementations recommend using a loopback address as the BGP source address for this reason. Remember that the loopback address must be added to the IGP running for this to work. This way, if R2′s 10.1.1.2 interface fails, R2 will still be reachable. The update-source command accomplishes this.
Here’s an example:
R1(config)# router bgp 65400 R1(config-router)# neighbor 192.168.2.2 remote-as 65400 R1(config-router)# neighbor 192.168.2.2 update-source loopback0
R2(config)# router bgp 65400 R2(config-router)# neighbor 192.168.1.1 remote-as 65400 R2(config-router)# neighbor 192.168.1.1 update-source loopback0
Defining Networks
Network statements in BGP are used differently than in other routing protocols like EIGRP or OSPF. EIGRP and OSPF use the network statements to define which interfaces you want to participate in the routing protocol process.
BGP uses network statements to define which networks the local router should advertise. Each network doesn’t have to be originating from the local router, but the network must exist in the routing table. The optional mask keyword is often recommended as BGP supports subnetting and supernetting.
Example:
R1(config)# router bgp 65300 R1(config-router)# neighbor 10.1.1.1 remote-as 65300 R1(config-router)# network 10.1.1.0 255.255.255.0 R1(config-router)# neighbor 10.1.2.1 remote-as 65300 R1(config-router)# network 10.1.2.0 255.255.255.0
Understand that by default a BGP router will not advertise a network learned from one iBGP peer to another. This is why iBGP is not a good replacement for an IGP like EIGRP and OSPF.

BGP Path Selection

Unlike most other routing protocols, BGP is not concerned with using the fastest path to a given destination. Instead, BGP assigns a long list of attributes to each path. Each of these attributes can be administratively tuned for extremely granular control of route selections.
BGP also does not load balance across links by default. To select the best route, BGP uses the criteria in the following order:
  1. Highest weight
  2. Highest local preference
  3. Choose routes originated locally
  4. Path with the shortest AS path
  5. Lowest origin code ( i < e < ? )
  6. Lowest MED
  7. eBGP route over iBGP route
  8. Route with nearest IGP neighbor (lowest IGP metric)
  9. Oldest route
  10. Neighbor with the lowest router ID
  11. Neighbor with the lowest IP address
Controlling Path Selection
The most common method of controlling the attributes listed above is to use route maps. This allows specific attributes to be changed on specific routes. Before we get into route maps, let’s first discuss the three prominent attributes: weight, local preference, and MED.

Weight

On Cisco routers, weight is the most influential BGP attribute. The weight attribute is proprietary to Cisco and is normally used to select an exit interface when multiple paths lead to the same destination. Weight is local and is not sent to other routers. It can be a value between 0-65,535. 0 is the default. In the example below, if you want R2 to prefer to use R1 when sending traffic to 192.168.20.0 then the weight attribute could raised on R2 for R1.
BGP Weight Diagram
R2(config)# router bgp 65100 R2(config-router)# neighbor 10.1.1.1 remote-as 65100 R2(config-router)# neighbor 10.2.2.1 remote-as 65100 R2(config-router)# neighbor 10.1.1.1 weight 100

Local Preference

Local preference is not proprietary to Cisco and can be used in a similar fashion to weight. It can be set for the entire router or for a specific prefix. Local preferences can range from 0-4,294,967,295, with 100 being the default value. Unlike weight, local preference is propagated to iBGP neighbors.
Using the diagram above, if an administrator wanted R2 to use R1 when sending traffic to 192.168.20.0, the configuration would look something like this:
R1(config)# router bgp 65100 R1(config-router)# bgp default local-preference 500
After the local preference is raised on R1, it will be shared with R2 and R2 will begin using it as its best path to the distant network (assuming the weight is the same of course). If you want to set the local preference on specific prefixes, route maps are usually the best option. Below is an example of the local preference being set using a route map:
R7(config)# router bgp 200 R7(config-router)# neighbor 10.10.10.1 remote-as 100 R7(config-router)# neighbor 10.10.10.1 route-map lp_example in R2(config-router)# exit R7(config)# access-list 7 permit 10.30.30.0 0.0.0.255 R7(config)# route-map lp_example permit 10 R7(config-rmap)# match ip address 7 R7(config-rmap)# set local-preference 300 R7(config-rmap)# exit R7(config)# route-map lp_example permit 20 R7(config-rmap)# set local-preference 100

MED

The MED attribute, or multi-exit discriminator is used to influence which path external neighbors use to enter an AS. MED is also much farther down on the attribute list, so attributes like weight, local preference, AS path length, and origin are used first. The default MED value is 0 and a lower value is preferred. A common scenario for MED is when a company has two connections to the same ISP for internet.
Weight or local preference could be used to send outgoing traffic on the higher bandwidth link, but local preference is not shared with routers outside an AS. MED could be set on one router so ISP routers prefer that path in.
To set the MED on all routes:
R1(config-router)# default-metric value
Here’s an example using a route map to influence incoming paths to 10.30.30.0/24 using MED:
R7(config)# router bgp 200 R7(config-router)# neighbor 10.10.10.1 remote-as 200 R7(config-router)# neighbor 10.10.10.1 route-map med_example out R2(config-router)# exit R7(config)# access-list 7 permit 10.30.30.0 0.0.0.255 R7(config)# route-map med_example permit 10 R7(config-rmap)# match ip address 7 R7(config-rmap)# set metric 50 R7(config-rmap)# exit R7(config)# route-map med_example permit 20 R7(config-rmap)# set metric 150

BGP Verification

It’s important that you understand and are able to interpret to results of the show ip bgp command output. It displays the contents of the local BGP topology database- including the attributes assigned to each network. It is perhaps the most important BGP verification and troubleshooting tool!
Because BGP uses many attributes and sources routes in a number of ways, the output of the show ip bgp command can be a bit overwhelming if you don’t know what you are looking for.
R1# show ip bgp BGP table version is 21, local router ID is 10.0.22.24 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.1.0.0 0.0.0.0 0 32768 ? * 10.2.0.0 10.0.22.25 10 0 25 ? *> 0.0.0.0 0 32768 ? * 10.0.0.0 10.0.22.25 10 0 25 ? *> 0.0.0.0 0 32768 ? *> 192.168.0.0/16 10.0.22.25 10 0 25 ?
Attributes
Here’s a breakdown of some important fields you should consider remembering:
* – An asterisk in the first column means that the route has a valid next hop.
s (suppressed) – BGP is not advertising the network, usually because it is part of a summarized route.
> – Indicates the best route for a particular destination. These will end up in the routing table.
i (internal) – If the third column has an i in it, it means the network was learned from an iBGP neighbor. If it is blank, it means the network was learned from an external source.
0.0.0.0 – The fifth column shows the next hop address for each route. A 0.0.0.0 indicates the local router originated the route (examples include a network command entered locally or a network an IGP redistributed into BGP on the router)
Metric (MED value) – The column titled Metric represents the configured MED values. Recall that 0 is the default and if another value exists, lower is preferred.
i/?- The last column displays information on how BGP originally learned the route. In the example above, ? is used for each route meaning they were all redistributed routes into BGP from an IGP. The other option is a question mark, which indicates that network commands were used to configure the route.

Sumber : http://www.ccnpguide.com/ccnp-route-642-902-bgp/

Filtering Mac-address dan STP Root Guard di berbagai vendor Switch



Berhubung saya nggak bisa tidur dan nanti harus kerja lagi, daripada kalau ketiduran nanti kebablasan, untuk mengisi waktu saya coba nulis aja deh tentang mac-filtering.

Mungkin untuk teman-teman yang kerja di ISP dan terkoneksi ke IIX AP*** seringkali kesulitan atau menemukan masalah saat ganti router BGP nya (atau mungkin pindah port), peer ke IIX nya jadi down. Padahal router BGP yang baru (port yang baru) sudah dikonfig sama persis dengan router / port yang lama. Sebenarnya kenapa sih?

Yuk, kita flashback sebentar.
Sebelum melakukan peering ke IIX biasanya ISP harus mengirimkan MoU ke NOC IIX. MoU ada di http://bit.ly/1kK1t7r. Di MoU, pada bab persyaratan teknis, point ke 6 tertulis seperti ini :
Anggota harus mengkonfigurasikan pada semua sambungan ke IIX untuk mematikan (disable) : Proxy ARP, ICMP redirects, Directed broadcast, IEEE802 Spanning Tree, Interior routing protocol broadcast, dan semua MAC layer broadcast kecuali ARP.
Harusnya di sisi ISP, pada harus di-disable MAC layer broadcast, dan  spanning-tree pada interface mengarah ke IIX. Nah, kalau lupa? Disinilah fungsinya IIX melakukan mac-filtering, selain untuk fungsi keamanan, untuk menghindari juga broadcast traffic yang berlebih dari perangkat ISP.

Setiap merk perangkat punya setingan sendiri-sendiri yang mirip-mirip sebenarnya. Tapi meskipun mirip kalau nggak biasa ya lumayan bingung juga. Nah, berikut saya berikan perbandingan untuk beberapa vendor antara lain Cisco, Brocade, dan Force 10.

1. Mac Filtering di Cisco Catalyst 3750
Pertama-tama, buat access list dulu untuk filtering mac-address yang akan dipermit untuk kirim traffic ke port kita. Contohnya seperti ini :

mac access-list extended MAC-ISP-A
 permit host 0025.90c0.d9f9 any
 deny   any any

Nah, setelah dibuat access listnya, sekarang bisa kita apply di interfacenya. Seperti ini caranya :

interface FastEthernet2/0/5
 description IIX-ISP-A
 switchport access vlan 111
 switchport mode access
 mac access-group MAC-ISP-A in
 no cdp enable
 spanning-tree guard root

2. Mac Filtering di Force 10 S50N
Mirip-mirip dengan sebelumnya, pertama kali kita buat access list nya dulu:

mac access-list standard MAC-ISP-B
 seq 5 permit 00:25:90:21:21:bb 
 seq 10 deny any 

Assign terlebih dahulu port nya di VLAN berapa jika memang ingin dipisahkan VLAN tersendiri, seperti ini assign VLAN di Force 10:

interface Vlan 111
 description VLAN-IIX
 no ip address
 untagged GigabitEthernet 0/1-6
 no shutdown

Sekarang assign access list nya di port siwtch nya:

interface GigabitEthernet 0/4
 description IIX-ISP-B
 no ip address
 switchport
 mac access-group MAC-ISP-B in
 no shutdown

3. Mac Filtering di Brocade
Pertama-tama konfigurasikan port dan VLAN nya:

interface VLAN 111
  description IIX  
  untagged GigabitEthernet 0/2-14

Ada 2 cara untuk konfigurasi mac-filternya. Sebenarnya nggak hanya di Brocade aja sih..
> Cara 1
   - Buat mac filter nya seperti ini :
      mac filter 1 permit 0004.c01a.e408 ffff.ffff.ffff any 
      mac filter 2 permit 0025.9021.21bb ffff.ffff.ffff any 
      mac filter 10 permit 0009.7b74.5008 ffff.ffff.ffff any 
      mac filter 11 permit 0015.63f2.3507 ffff.ffff.ffff any 
      mac filter 20 permit 000a.f304.8820 ffff.ffff.ffff any 
      mac filter 21 permit 0012.018f.cc02 ffff.ffff.ffff any 
      mac filter 22 permit 000b.45ec.bc19 ffff.ffff.ffff any 
      mac filter 30 permit 000c.429a.4c8a ffff.ffff.ffff any 
      mac filter 512 deny any any 
  - Setelah itu apply langsung di interfacenya :
     interface ethernet 1/1/13
      port-name IIX-ISP-C 
      loop-detection                                                   
      mac filter-group 1 512 
      spanning-tree root-protect
       no shutdown

> Cara 2
   - Buat access list untuk filtering mac-addressnya sperti ini:
      mac access-list standard MAC-ISP-D
       seq 5 permit 00:0c:42:9a:4c:8a 
       seq 10 deny any
   - Apply access list tersebut di interface nya :
      interface GigabitEthernet 0/32
       description IIX-ISP-D
       no ip address
       switchport
       mac access-group MAC-ISP-D in
       no shutdown

Nah.. Demikian sedikit perbandingan gimana caranya filtering mac-address, assign VLAN, termasuk juga konfigurasi root protect / root guard nya.

Semoga bermanfaat.

Syawal Nugrahanto

EtherChannel Part 2

Kenapa ada banyak mode di EtherChannel? Seperti apa penjelasannya?
KANAN(config-if-range)#channel-group 1 mode ?
  active     Enable LACP unconditionally
  auto       Enable PAgP only if a PAgP device is detected
  desirable  Enable PAgP unconditionally
  on         Enable Etherchannel only
  passive    Enable LACP only if a LACP device is detected 

Penjelasan:
Ada 3 Tipe cara membangun etherchannel :
1. LACP (Link Control Aggregation Protocol)
Tipe ini adalah Standard IEEE 802.3ad. Bisa digunakan antar perangkat yang berbeda merk. Entah itu pakai Cisco, HP, Mikrotik, Huawei, Juniper, pokoknya nggak masalah.

2. PAgP (Port Aggregation Protocol)
Tipe ini adalah Cisco Propietary. Hanya bisa digunakan antar perangkat Cisco.

Nah, berikut perbandingan 2 mode tersebut untuk 2 switch:
Jadi, agar bisa terbentuk Etherchannel nya harus memenuhi kriteria gambar di atas. Misalkan, jika switch A menggunakan LACP dan mode nya aktif, agar bisa terbentuk etherchannel maka switch B menggunakan LACP mode Active atau Passive. Tapi kalau kedua-duanya modenya Passive, maka Etherchannel tidak akan terbentuk.  

Apakah ada catatan/ketentuan khusus dalam mengkonfigurasi EtherChannel?
Ada, :
  1. Perlu diperhatikan bahwa speed dan duplex interface harus sama 
  2. Port yang digunakan untuk etherchannel harus di VLAN yang sama, atau bisa diseting trunk. 
  3. Etherchannel tidak akan jalan jika salah satu port dipasang SPAN (Switch Port Analizer). 
  4. Etherchannel bisa berjalan di layer 2 ataupun layer 3.
Apakah Etherchannel di layer 3 bisa dikasih IP juga?
Bisa, tetapi dikasih IP nya di Interface Portchannel nya ya.. Bukan di interface fisiknya. :)



Syawal Nugrahanto

EtherChannel Part 1

Apa itu EtherChannel?
Etherchannel adalah penggabungan beberapa link pada switch sehingga menjadi satu link logic.

Apa tujuan menggunakan Etherchannel?
Agar  bisa menggabungkan bandwith dari beberapa link fisik serta menyediakan redundancy fisik.

Seperti apa gambaran Etherchannel itu?
Seperti gambar di bawah ini :
Jadi, meskipun 2 switch saling terhubung beberapa kabel, tidak akan ada issue looping, karena switch akan menganggap itu hanya sebagai satu link fisik.

Bagaimana cara mengkonfigurasikan nya?
Yuk, kita praktek pakai packet tracer seperti ini:



Konfigurasi di Switch KIRI :
KIRI#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
KIRI(config)#interface range fa0/1 - 3
KIRI(config-if-range)#channel-group 1 mode ?
  active     Enable LACP unconditionally
  auto       Enable PAgP only if a PAgP device is detected
  desirable  Enable PAgP unconditionally
  on         Enable Etherchannel only
  passive    Enable LACP only if a LACP device is detected
KIRI(config-if-range)#channel-group 1 mode active

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
KIRI(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

Konfigurasi di Switch KANAN:
KANAN#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
KANAN(config)#interface range fa0/1 - 3
KANAN(config-if-range)#channel-group 1 mode ?
  active     Enable LACP unconditionally
  auto       Enable PAgP only if a PAgP device is detected
  desirable  Enable PAgP unconditionally
  on         Enable Etherchannel only
  passive    Enable LACP only if a LACP device is detected
KANAN(config-if-range)#channel-group 1 mode pass
KANAN(config-if-range)#channel-group 1 mode passive

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
KANAN(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up


%LINK-5-CHANGED: Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up


Setelah dua duanya dikonfigurasi, akan muncul interface Port-channel 1 dengan status up.
Jadi critanya terbentuklah satu virtual interface yang merupakan penggabungan 3 port sebelumnya dan dianggap 1 link dari switch KIR ke switch KIRI.

Bagaimana cara melakukan pengecekan ke Interface Port Channel yang baru saja kita konfigure?
> Show Eterchannel Summary
KIRI#show etherchannel summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port


Number of channel-groups in use: 1
Number of aggregators:           1

Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------------------------

1      Po1(SU)           LACP   Fa0/1(P) Fa0/2(P) Fa0/3(P)  


> Show Eterchannel Port-channel
KIRI#show etherchannel port-channel
                Channel-group listing:
                ----------------------

Group: 1
----------
                Port-channels in the group:
                ---------------------------

Port-channel: Po1    (Primary Aggregator)
------------

Age of the Port-channel   = 00d:00h:23m:27s
Logical slot/port   = 2/1       Number of ports = 3
GC                  = 0x00000000      HotStandBy port = null
Port state          = Port-channel
Protocol            =   LACP
Port Security       = Disabled

Ports in the Port-channel:

Index   Load   Port     EC state        No of bits
------+------+------+------------------+-----------
  0     00     Fa0/1    Active             0
  0     00     Fa0/3    Active             0
  0     00     Fa0/2    Active             0
Time since last port bundled:    00d:00h:09m:58s    Fa0/2


> Show interfaces Etherchannel
KIRI#show interfaces etherchannel
FastEthernet0/1:
Port state    = 1
Channel group = 1           Mode = Active          Gcchange = -
Port-channel  = Po1         GC   =   -             Pseudo port-channel = Po1
Port index    = 0           Load = 0x00            Protocol =   LACP

Flags:  S - Device is sending Slow LACPDUs   F - Device is sending fast LACPDUs

        A - Device is in active mode.        P - Device is in passive mode.

Local information:
                            LACP port     Admin     Oper    Port        Port
Port      Flags   State     Priority      Key       Key     Number      State
Fa0/1     SA      down      32768         0x0       0x0     0x1         

Partner's information:
                  LACP port                        Admin  Oper   Port    Port
Port      Flags   Priority  Dev ID          Age    key    Key    Number  State
Fa0/1     SA      32768     000A.4162.10D7         0x0    0x0    0x1     

Age of the port in the current state:  00d:00h:11m:30s

FastEthernet0/2:
Port state    = 1
Channel group = 1           Mode = Active          Gcchange = -
Port-channel  = Po1         GC   =   -             Pseudo port-channel = Po1
Port index    = 0           Load = 0x00            Protocol =   LACP

Flags:  S - Device is sending Slow LACPDUs   F - Device is sending fast LACPDUs

        A - Device is in active mode.        P - Device is in passive mode.

Local information:
                            LACP port     Admin     Oper    Port        Port
Port      Flags   State     Priority      Key       Key     Number      State
Fa0/2     SA      down      32768         0x0       0x0     0x2         

Partner's information:
                  LACP port                        Admin  Oper   Port    Port
Port      Flags   Priority  Dev ID          Age    key    Key    Number  State
Fa0/2     SA      32768     000A.4162.10D7         0x0    0x0    0x2     

Age of the port in the current state:  00d:00h:11m:30s

FastEthernet0/3:
Port state    = 1
Channel group = 1           Mode = Active          Gcchange = -
Port-channel  = Po1         GC   =   -             Pseudo port-channel = Po1
Port index    = 0           Load = 0x00            Protocol =   LACP

Flags:  S - Device is sending Slow LACPDUs   F - Device is sending fast LACPDUs

        A - Device is in active mode.        P - Device is in passive mode.

Local information:
                            LACP port     Admin     Oper    Port        Port
Port      Flags   State     Priority      Key       Key     Number      State
Fa0/3     SA      down      32768         0x0       0x0     0x3         

Partner's information:
                  LACP port                        Admin  Oper   Port    Port
Port      Flags   Priority  Dev ID          Age    key    Key    Number  State
Fa0/3     SA      32768     000A.4162.10D7         0x0    0x0    0x3     

Age of the port in the current state:  00d:00h:11m:30s

----
Port-channel1:Port-channel1   (Primary aggregator)
Age of the Port-channel   = 00d:00h:24m:59s
Logical slot/port   = 2/1             Number of ports = 3
HotStandBy port = null
Port state          =
Protocol            =   1
Port Security       = Disabled

Ports in the Port-channel:

Index   Load   Port     EC state        No of bits
------+------+------+------------------+-----------
  0     00     Fa0/1    Active             0
  0     00     Fa0/3    Active             0
  0     00     Fa0/2    Active             0
Time since last port bundled:    00d:00h:11m:30s    Fa0/2



Syawal Nugrahanto

Tentang IP Address

Apa itu IP Address?
IP Address adalah suatu angka desimal dan atau hexadimal dengan format penulisan tertentu yang digunakan sebagai alamat dalam pengiriman packet data dari komputer ke komputer lain secara digital.
IP adalah kependekan dari Internet Protocol.

Ada berapa jenis IP Address itu?
Saat ini ada dua jenis IP Address digunakan: IP versi 4 (IPv4) dan IP versi 6 (IPv6). IPv4 awalnya ditempatkan pada tanggal 1 Januari 1983 dan masih versi yang paling umum digunakan. Alamat IPv4 adalah angka 32-bit sering dinyatakan sebagai 4 oktet dalam "desimal bertitik" notasi (misalnya, 192.0.2.53). Penyebaran protokol IPv6 dimulai pada tahun 1999. Alamat IPv6 adalah angka 128-bit dan secara konvensional dinyatakan dengan string heksadesimal (misalnya, 2001:0 db8: 582: ae33 :: 29). 

Apa itu IP Public dan IP Privat?
IP Public adalah IP tertentu yang dialokasikan khusus untuk digunakan dalam routing di Internet. IP Public sifatnya berbayar.

IP Privat adalah IP tertentu yang dialokasikan untuk umum dan sifatnya gratis. IP Privat tidak bisa terhubung secara langsung ke Internet, melainkan harus dilewatkan melalui IP Public dulu. Cara mentranslasikan dari IP Privat ke IP Public bisa menggunakan NAT (Network Address Translation). IP Privat biasa digunakan untuk jaringan Intranet.

Menurut IANA, IP Address yang dialokasikan untuk keperluan Intranet tersebut adalah :
  • Begins with 10. (i.e. 10.0.0.0 through 10.255.255.255)
  • Begins with 127.
  • Begins with 169.254.
  • Begins with 172.16. through 172.31.
  • Begins with 192.168.
IP dengan awalan 127. digunakan untuk kepentingan loopback.

Siapa yang mengatur tentang IP Address?

Lembaga yang mengatur alokasi IP Address di dunia adalah IANA (Internet Assigned Number Authority). Informasi tentang IANA bisa dilihat di webnya http://iana.org/. IANA bertanggung jawab dalam koordinasi global pengalamatan IP Address serta penggunaan AS Number untuk routing di dalam Internet.

Pada praktiknya, kita tidak akan  langsung berhubungan dengan IANA.  IANA mempunyai yang namanya RIR (Regional Internet Registry). RIR bertugas untuk mengatur regulasi penggunaan IP di masing-masing region wilayahnya. Ada 5 RIR di dunia, antara lain:
  • AFRINIC    Africa Region
  • APNIC      Asia/Pacific Region
  • ARIN        North America Region
  • LACNIC    Latin America and some Caribbean Islands
  • RIPE NCC    Europe, the Middle East, and Central Asia 

Untuk Indonesia sendiri masuk di area APNIC (https://www.apnic.net/).


Dibawah RIR ada yang namanya NIR (National Internet Registry). NIR bisa diibaratkan sebagai perwakilan APNIC di masing-masing negara. NIR berfungsi sebagai sales dari RIR dan mengtur regulasi penjualannya di negara tersebut. Untuk Indonesia dikelola oleh IDNIC (http://idnic.net/). IDNIC (Indonesia Network Information Center) sendiri dikelola dibawah APJII (Asosiasi Penyelenggara Jasa Internet Indonesia).



Dari IDNIC, IP Address tersebut dijual untuk keperluan routing Internet di wilayah Indonesia ke ISP ISP yang berada di Indonsia. ISP (Internet Service Provider) inilah ujung tombak dari penyebaran Internet di Indonesia. ISP ini dikenal juga dengan sebutan LIR (Local Internet Registry).


Bagaimana cara mendapatkan IP Public ?
Jika kita berlangganan Internet dedicated ke suatu ISP (Internet Service Provider), maka kita akan mendapatkan yang namanya IP Public. IP Public ini dipinjamkan kepada kita selama kita berlangganan Internet tersebut.

Cara yang lain adalah dengan membeli (sewa) IP Public ke IDNIC (melalui APJII). Besarnya biaya sewa bergantung pada jumlah IP yang akan kita pesan. Akan tetapi agar IP tersebut bisa diakses dari Internet, kita tetap memerlukan jasa ISP untuk menghubungkannya. Inilah yang namanya "IP Transit", yaitu mentransitkan IP Public kita melalui IP Public ISP lain agar bisa terhubung ke Internet. IP Public ini akan berdifat permanen, selama kita sewa IP tersebut.

Bagi ISP sendiri ada 2 pilhan untuk mendapatkan IP Address, bisa langsung sewa ke APNIC ataupun melalui IDNIC (APJII).

Berikut adalah biaya sewa bila melalui IDNIC:


No Subnet ISP Perusahaan Pendidikan
1.
/24
-
Rp.8.100.000,-
Rp.7.100.000,-
2.
/23
-
Rp.10.500.000,-
Rp.9.200.000,-
3.
/22
Rp.8.500.000,-
Rp.13.600.000,-
Rp.11.900.000,-
4.
/21
Rp.11.000.000,-
Rp.17.600.000,-
Rp.15.400.000,-
5.
/20
Rp.14.400.000,-
Rp.23.000.000,-
Rp.20.100.000,-
6.
/19
Rp.18.700.000,-
Rp.29.800.000,-
Rp.26.100.000,-
7.
/18
Rp.24.300.000,-
Rp.38.800.000,-
Rp.33.900.000,-
8.
/17
Rp.31.500.000,-
Rp.50.400.000,-
Rp.44.100.000,-
9.
/16
Rp.41.000.000,-
Rp.65.500.000,-
Rp.57.300.000,-
10.
/15
Rp.54.200.000,-
-
-
11.
/14
Rp.69.200.000,-
-
-
12.
/13
Rp.89.900.000,-
-
-
13.
/12
Rp.116.900.000,-
-
-

Catatan:
- Untuk Direcet member IDNIC / Non ISP anggota APJII akan dikenakan tarif IP Application Fee sebesar:
Rp 5.000.000,-
- Mulai Januari 2010, iuran IP Address (NIR) akan dikenai pajak PPN 10%





























Syawal Nugrahanto