1- IP adresı ataması
2- F/R yapılandırılması
3- Router>enable
Router#config
Router(config)#hostname izmir
izmir(config)#ip name-server 40.0.0.2
izmir(config)#interface serial 2/0
izmir(config-if)#encapsulation frame-relay
izmir(config-if)#no ip address
izmir(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
izmir(config-if)#exit
izmir(config)#s
izmir(config)#sub
izmir(config)#int
izmir(config)#interface ser
izmir(config)#interface serial 2/0
izmir(config-if)#clock rate 128000
izmir(config-if)#exit
izmir(config)#interface s2/0.100 point-to-point
izmir(config-subif)#frame-relay interface-dlci 102
izmir(config-subif)#ip address 21.0.0.1 255.0.0.0
izmir(config-subif)#exit
izmir(config)#interface s2/0.200 point-to-point
izmir(config-subif)#frame-relay interface-dlci 103
izmir(config-subif)#ip address 22.0.0.1 255.0.0.0
izmir(config-subif)#exit
izmir(config)#end
izmir#
------istanbul----
Router>enable
Router(config)#hostname istanbul
istanbul(config)#ip name-server 40.0.0.2
istanbul(config)#interface serial 2/0
istanbul(config-if)#encapsulation frame-relay
istanbul(config-if)#no ip address
istanbul(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
istanbul(config-if)#clock rate 128000
istanbul(config-if)#exit
istanbul(config)#interface serial 2/0.100 point-to-point
%LINK-5-CHANGED: Interface Serial2/0.100, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0.100, changed state to upistanbul(config-subif)#
istanbul(config-subif)#frame-relay interface-dlci 201
istanbul(config-subif)#ip address 21.0.0.2 255.0.0.0
istanbul(config-subif)#exit
istanbul(config)#interface serial 2/0.200 point-to-point
%LINK-5-CHANGED: Interface Serial2/0.200, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0.200, changed state to upistanbul(config-subif)#
istanbul(config-subif)#frame-relay interface-dlci 203
istanbul(config-subif)#ip address 23.0.0.1 255.0.0.0
istanbul(config-subif)#exit
istanbul(config)#end
%SYS-5-CONFIG_I: Configured from console by console
istanbul#ping 21.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 21.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/59/79 ms
istanbul#
------ankara------
Router>enable
Router#conf
Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho
Router(config)#hostname ankara
ankara(config)#ip name-server 40.0.0.2
ankara(config)#interface serial 2/0
ankara(config-if)#encapsulation frame-relay
ankara(config-if)#no ip address
ankara(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
ankara(config-if)#clock rate 128000
ankara(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
ankara(config-if)#exit
ankara(config)#interface serial 2/0.100 point-to-point
ankara(config-subif)#frame-relay interface-dlci 301
ankara(config-subif)#ip address 22.0.0.2 255.0.0.0
ankara(config-subif)#exit
ankara(config)#interface serial 2/0.200 point-to-point
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0.200, changed state to upankara(config-subif)#
ankara(config-subif)#frame-relay interface-dlci 302
ankara(config-subif)#ip address 23.0.0.2 255.0.0.0
ankara(config-subif)#exit
ankara(config)#end
%SYS-5-CONFIG_I: Configured from console by console
ankara#ping 22.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 47/57/63 ms
ankara#ping 23.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 23.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 47/57/63 ms
ankara#
3- dhcp yapılandırması
--------------------------
istanbul router ı
istanbul#
istanbul#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
istanbul(config)#
istanbul(config)#ip dhcp pool istanbul
istanbul(dhcp-config)#network 30.0.0.0 255.0.0.0
istanbul(dhcp-config)#dns-server 40.0.0.2
istanbul(dhcp-config)#default-router 30.0.0.1
istanbul(dhcp-config)#
istanbul(dhcp-config)#exit
istanbul(config)#ip dhcp excluded-address 30.0.0.1 30.0.0.255
istanbul(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
***4- dhcp client larının nat ile dışarı çıkışı
------------------------------------------------
nat havuzu açılır :
istanbul(config)#ip nat pool istNAT 21.0.0.50 21.0.0.60 netmask 255.0.0.0
nat için access-list tanımlanır:
istanbul(config)#access-list 20 permit 30.0.0.0 0.255.255.255
access-list nat'a atanır :
istanbul(config)#ip nat inside source list 20 pool istNAT
şeklinde 21.0.0.50 ila 21.0.0.60 arasında ip kullanılır.
istanbul(config)#ip nat inside source list 20 pool istNAT overload
şeklinde ise 21.0.0.50 tüm cihazlar tarafından çıkış ip si olarak kullanılır.
Nat'ın arabirimlerde in veya out mu çalışacak belirlenir...:
fa0/0 için
istanbul(config)#interface fastEthernet 0/0
istanbul(config-if)#ip nat inside
0.100 için
istanbul(config)#interface serial 2/0.100
istanbul(config-subif)#ip nat outside
0.200 için
istanbul(config)#interface serial 2/0.200
istanbul(config-subif)#ip nat outside
istanbul#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 21.0.0.50:1 30.0.1.0:1 21.0.0.1:1 21.0.0.1:1
icmp 21.0.0.50:2 30.0.1.0:2 21.0.0.1:2 21.0.0.1:2
icmp 21.0.0.50:3 30.0.1.0:3 21.0.0.1:3 21.0.0.1:3
icmp 21.0.0.50:4 30.0.1.0:4 21.0.0.1:4 21.0.0.1:4
6- ospf yapılandırması
#hostname denizli
denizli(config)#ip name-server 40.0.0.2
denizli(config)#router ospf 40
denizli(config-router)#network 15.0.0.0 0.255.255.255 area 0
denizli(config-router)#network 14.0.0.0 0.255.255.255 area 1
hostname bursa
bursa(config)#ip name-server 40.0.0.2
bursa(config)#router ospf 40
bursa(config-router)#network 14.0.0.0 0.255.255.255 area 1
bursa icin show ip route
bursa#show ip route
Gateway of last resort is not set
C 14.0.0.0/8 is directly connected, Serial0/0
O IA 15.0.0.0/8 [110/65] via 14.0.0.2, 00:01:20, Serial0/0
O IA 16.0.0.0/8 [110/66] via 14.0.0.2, 00:00:40, Serial0/0
O IA 21.0.0.0/8 [110/130] via 14.0.0.2, 00:00:40, Serial0/0
O IA 22.0.0.0/8 [110/130] via 14.0.0.2, 00:00:40, Serial0/0
O IA 23.0.0.0/8 [110/194] via 14.0.0.2, 00:00:40, Serial0/0
O IA 40.0.0.0/8 [110/131] via 14.0.0.2, 00:00:40, Serial0/0
izmir icin:
izmir#show ip route
Gateway of last resort is not set
O IA 14.0.0.0/8 [110/66] via 16.0.0.1, 00:02:55, FastEthernet0/0
O 15.0.0.0/8 [110/2] via 16.0.0.1, 00:02:55, FastEthernet0/0
C 16.0.0.0/8 is directly connected, FastEthernet0/0
C 21.0.0.0/8 is directly connected, Serial2/0.100
C 22.0.0.0/8 is directly connected, Serial2/0.200
O 23.0.0.0/8 [110/128] via 21.0.0.2, 00:03:30, Serial2/0.100
[110/128] via 22.0.0.2, 00:03:30, Serial2/0.200
O 40.0.0.0/8 [110/65] via 22.0.0.2, 00:03:30, Serial2/0.200
Bursa için VLAN
bursa>
bursa>ena
bursa>enable
bursa#conf terminal
Enter configuration commands, one per line. End with CNTL/Z
bursa(config)#interface fastEthernet 0/0
bursa(config-if)#no ip address
bursa(config-if)#no shutdown
bursa(config-if)#exit
bursa(config)#interface fastEthernet 0/0.12
bursa(config-subif)#encapsulation dot1Q 12
bursa(config-subif)#ip address 192.168.1.1 255.255.255.0
bursa(config-subif)#no shutdown
bursa(config-subif)#exit
bursa(config)#interface fastEthernet 0/0.13
bursa(config-subif)#encapsulation dot1Q 13
bursa(config-subif)#ip address 192.168.2.1 255.255.255.0
bursa(config-subif)#no shutdown
bursa(config-subif)#exit
bursa(config)#
7- VLAN Yapılandırması (Bursa LOCAL)
8- NAT Yapılandırması (Bursa LOCAL)