This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
оборудование_уровня_3_cisco_router [2022/02/21 10:13] val [Настройка DHCP сервиса] |
оборудование_уровня_3_cisco_router [2022/03/25 11:05] val [EtherChannel] |
||
---|---|---|---|
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 | ||
Line 12: | Line 16: | ||
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 | ||
- | ! description connection to LAN2 | ||
- | ! encapsulation dot1Q 2 | ||
- | ! ip address 192.168.100+X.1 255.255.255.0 | ||
- | ! no shut | ||
! | ! | ||
interface FastEthernet1/1 | interface FastEthernet1/1 | ||
+ | !interface FastEthernet0/0 | ||
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 ! Для курса с GNS | ||
+ | |||
+ | interface FastEthernet1/0 | ||
+ | channel-group 1 | ||
+ | no shutdown | ||
+ | |||
+ | interface FastEthernet1/1 | ||
+ | channel-group 1 | ||
+ | ! no shutdown ! Для курса с 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 57: | 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 | ||
Line 111: | Line 138: | ||
deny ip any any ! log | deny ip any any ! log | ||
+ | ! interface FastEthernet0/0 | ||
interface FastEthernet1/1 | interface FastEthernet1/1 | ||
ip access-group ACL_FIREWALL in | ip access-group ACL_FIREWALL in | ||
Line 168: | Line 196: | ||
ip flow-export destination server 2055 | ip flow-export destination server 2055 | ||
! ip flow-export destination server 9555 | ! 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> |