User Tools

Site Tools


оборудование_уровня_3_cisco_router

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
оборудование_уровня_3_cisco_router [2020/11/16 12:21]
val [с использованием статических записей (аналог hosts)]
оборудование_уровня_3_cisco_router [2023/06/28 10:38] (current)
val [Настройка экспорта статистики по протоколу NetFlow]
Line 7: Line 7:
  
 ===== Настройка интерфейсов ===== ===== Настройка интерфейсов =====
 +
 +  * [[https://​www.cisco.com/​c/​ru_ru/​support/​docs/​switches/​catalyst-2950-series-switches/​24042-158.html|Настройка транкинга EtherChannel и 802.1Q между коммутатором Catalyst с фиксированной конфигурацией L2 и маршрутизатором (InterVLAN Routing)]]
 +
 +==== Базовая ====
 <​code>​ <​code>​
-interface FastEthernet1/​0 +!interface FastEthernet1/​0 
- ​description connection to LAN +description connection to LAN 
- ip address 192.168.X.1 255.255.255.0 +ip address 192.168.X.1 255.255.255.0 
- no shutdown+no shutdown
 ! !
-!interface ​FastEthernet0/0.2 +!interface ​FastEthernet1/1 
-! description connection to LAN2 +interface ​FastEthernet0/0
-! encapsulation dot1Q 2 +
-! ip address 192.168.100+X.255.255.255.0 +
-! no shut +
-! +
-interface ​FastEthernet1/1+
  ​description connection to ISP  ​description connection to ISP
  ip address 172.16.1.X 255.255.255.0  ip address 172.16.1.X 255.255.255.0
Line 27: Line 26:
  ​mac-address e418.08f2.5900+X ! for GNS  ​mac-address e418.08f2.5900+X ! for GNS
  no shutdown  no shutdown
 +</​code>​
 +
 +==== EtherChannel ====
 +
 +<​code>​
 +interface Port-channel1
 + ​description connection to LAN
 + ip address 192.168.X.1 255.255.255.0
 + no shutdown
 + ​duplex full   ! for GNS
 +
 +interface FastEthernet1/​0
 + ​channel-group 1
 + no shutdown
 +
 +interface FastEthernet1/​1
 + ​channel-group 1
 +! no shutdown ​ ! for course with GNS
 +</​code>​
 +
 +
 +==== Trunk ====
 +<​code>​
 +!interface FastEthernet1/​0.2
 +! description connection to LAN2
 +! encapsulation dot1Q 2
 +! ip address 192.168.100+X.1 255.255.255.0
 +! no shut
 </​code>​ </​code>​
  
Line 45: Line 72:
 ==== c использованием DNS ==== ==== c использованием DNS ====
 <​code>​ <​code>​
-ip name-server 172.16.1.254+!ip name-server 172.16.1.254 
 +ip name-server 192.168.X.10
  
 ip domain-name corpX.un ip domain-name corpX.un
Line 56: Line 84:
 !no ip domain-lookup !no ip domain-lookup
  
-!ip host server 192.168.X.10+!ip host server 192.168.X.10 ​  !Рекомендуется для rcmd
 </​code>​ </​code>​
  
 ===== Настройка DHCP сервиса ===== ===== Настройка DHCP сервиса =====
 <​code>​ <​code>​
-ip dhcp excluded-address 192.168.X.1 192.168.X.127 +ip dhcp excluded-address 192.168.X.1 192.168.X.100 
-ip dhcp excluded-address 192.168.X.250 192.168.X.254+ip dhcp excluded-address 192.168.X.110 192.168.X.254
  
 ip dhcp pool LAN ip dhcp pool LAN
    ​network 192.168.X.0 255.255.255.0    ​network 192.168.X.0 255.255.255.0
    ​default-router 192.168.X.1    ​default-router 192.168.X.1
-   dns-server 172.16.1.254+ 
 +!   dns-server 172.16.1.254 
 +   ​dns-server 192.168.X.10 
    ​domain-name corpX.un    ​domain-name corpX.un
-!   ​option 150 ip 192.168.X.10 ​+ 
 +!   ​option 150 ip 192.168.X.10 
 +!   ​bootfile pxelinux.0 
 +!   ​next-server 192.168.X.10 
    lease 0 10 0    lease 0 10 0
 +</​code><​code>​
 +#show ip dhcp binding
 </​code>​ </​code>​
 ===== Настройка NTP сервиса ===== ===== Настройка NTP сервиса =====
Line 101: Line 138:
  ​deny ​  ip any any ! log  ​deny ​  ip any any ! log
  
-interface ​FastEthernet1/1+interface ​FastEthernet0/0
  ip access-group ACL_FIREWALL in  ip access-group ACL_FIREWALL in
  
Line 157: Line 194:
 ip flow-export version 5 ip flow-export version 5
 ip flow-export destination server 2055 ip flow-export destination server 2055
 +! ip flow-export destination server 9555
  
-interface FastEthernet1/​0+ 
 +!interface FastEthernet1/​0 
 +interface Port-channel1
  ip route-cache flow  ip route-cache flow
  
-interface FastEthernet1/​1+!interface FastEthernet1/​1 
 +interface FastEthernet0/​0
  ip route-cache flow  ip route-cache flow
 </​code>​ </​code>​
оборудование_уровня_3_cisco_router.1605518501.txt.gz · Last modified: 2020/11/16 12:21 by val