diff --git a/cisco/configs/bezruk-street/bezruk-rtr.sh b/cisco/configs/ISP/bezruk-isp.sh similarity index 100% rename from cisco/configs/bezruk-street/bezruk-rtr.sh rename to cisco/configs/ISP/bezruk-isp.sh diff --git a/cisco/configs/china-town/cht-isp.sh b/cisco/configs/ISP/cht-isp.sh similarity index 71% rename from cisco/configs/china-town/cht-isp.sh rename to cisco/configs/ISP/cht-isp.sh index abcce27..d9b15e8 100644 --- a/cisco/configs/china-town/cht-isp.sh +++ b/cisco/configs/ISP/cht-isp.sh @@ -1,7 +1,4 @@ en - er s - del vlan.dat - conf t vl 22 @@ -14,7 +11,7 @@ en vl 221 na "VLAN2 China town" vl 222 - na "VLAN3 Sexshop" + na "VLAN3 Imsit" vl 223 na "VLAN4 Bezruk steet" vl 224 @@ -41,6 +38,20 @@ en login local t i s + int se0/3/0 + ip addr 172.18.79.9 255.255.255.252 + + int se0/3/1 + ip addr 172.18.79.30 255.255.255.252 + + int r se0/3/0 + + int gi0/0 + ip addr 172.18.79.6 255.255.255.252 + + int gi0/1 + ip addr 172.17.79.2 255.255.255.252 + int r gi0/0-1 no sh sw m t @@ -51,7 +62,7 @@ en ip domain n cht-rtr ena s cisco ser p - ba m "Hello from cht-rtr!" + ba m "Hello from cht-isp!" cr k g r 1024 diff --git a/cisco/configs/floor-ssa-v/floor-sw-ssa-v.sh b/cisco/configs/ISP/floor-sw-ssa-v.sh similarity index 100% rename from cisco/configs/floor-ssa-v/floor-sw-ssa-v.sh rename to cisco/configs/ISP/floor-sw-ssa-v.sh diff --git a/cisco/configs/imsit/rostelecom-isp.sh b/cisco/configs/ISP/rostelecom-isp.sh similarity index 100% rename from cisco/configs/imsit/rostelecom-isp.sh rename to cisco/configs/ISP/rostelecom-isp.sh diff --git a/cisco/configs/floor-ssa-v/ssa-v-rtr.sh b/cisco/configs/ISP/ssa-v-isp.sh similarity index 100% rename from cisco/configs/floor-ssa-v/ssa-v-rtr.sh rename to cisco/configs/ISP/ssa-v-isp.sh diff --git a/cisco/configs/base-config-with-comments.sh b/cisco/configs/base-config-with-comments.sh index 1cad14d..922b71f 100644 --- a/cisco/configs/base-config-with-comments.sh +++ b/cisco/configs/base-config-with-comments.sh @@ -13,7 +13,7 @@ en vl 221 na "VLAN2 China town" vl 222 - na "VLAN3 Sexshop" + na "VLAN3 Imsit" vl 223 na "VLAN4 Bezruk steet" vl 224 diff --git a/cisco/configs/base-config.sh b/cisco/configs/base-config.sh index 7948719..e8fee65 100644 --- a/cisco/configs/base-config.sh +++ b/cisco/configs/base-config.sh @@ -1,6 +1,4 @@ en - er s - del vlan.dat conf t vl 22 diff --git a/cisco/configs/china-town/cht-rtr1.sh b/cisco/configs/china-town/cht-rtr1.sh index 2ef1ac5..528b824 100644 --- a/cisco/configs/china-town/cht-rtr1.sh +++ b/cisco/configs/china-town/cht-rtr1.sh @@ -14,7 +14,7 @@ en vl 221 na "VLAN2 China town" vl 222 - na "VLAN3 Sexshop" + na "VLAN3 Imsit" vl 223 na "VLAN4 Bezruk steet" vl 224 diff --git a/cisco/configs/china-town/cht-rtr2.sh b/cisco/configs/china-town/cht-rtr2.sh index 9c45c14..fb7955f 100644 --- a/cisco/configs/china-town/cht-rtr2.sh +++ b/cisco/configs/china-town/cht-rtr2.sh @@ -14,7 +14,7 @@ en vl 221 na "VLAN2 China town" vl 222 - na "VLAN3 Sexshop" + na "VLAN3 Imsit" vl 223 na "VLAN4 Bezruk steet" vl 224 diff --git a/cisco/configs/china-town/cht-sw-b1.sh b/cisco/configs/china-town/cht-sw-b1.sh index adacb4f..72cac97 100644 --- a/cisco/configs/china-town/cht-sw-b1.sh +++ b/cisco/configs/china-town/cht-sw-b1.sh @@ -1,7 +1,4 @@ en - er s - del vlan.dat - conf t vl 22 @@ -14,7 +11,7 @@ en vl 221 na "VLAN2 China town" vl 222 - na "VLAN3 Sexshop" + na "VLAN3 Imsit" vl 223 na "VLAN4 Bezruk steet" vl 224 @@ -44,6 +41,9 @@ en int r fa0/2-3 channel-group 1 mode on + int p 1 + sw m t + int r fa0/1-4 no sh sw m t diff --git a/cisco/configs/china-town/cht-sw-b2.sh b/cisco/configs/china-town/cht-sw-b2.sh index 2d51357..0ccede3 100644 --- a/cisco/configs/china-town/cht-sw-b2.sh +++ b/cisco/configs/china-town/cht-sw-b2.sh @@ -1,7 +1,4 @@ en - er s - del vlan.dat - conf t vl 22 @@ -14,7 +11,7 @@ en vl 221 na "VLAN2 China town" vl 222 - na "VLAN3 Sexshop" + na "VLAN3 Imsit" vl 223 na "VLAN4 Bezruk steet" vl 224 @@ -43,6 +40,9 @@ en int r fa0/2-3 channel-group 1 mode on + + int p 1 + sw m t int r fa0/1-4 no sh diff --git a/cisco/configs/china-town/cht-sw-club.sh b/cisco/configs/china-town/cht-sw-club.sh index b054483..268ce47 100644 --- a/cisco/configs/china-town/cht-sw-club.sh +++ b/cisco/configs/china-town/cht-sw-club.sh @@ -14,7 +14,7 @@ en vl 221 na "VLAN2 China town" vl 222 - na "VLAN3 Sexshop" + na "VLAN3 Imsit" vl 223 na "VLAN4 Bezruk steet" vl 224 diff --git a/cisco/my-comments.txt b/cisco/my-comments.txt index 3df5e27..6c6b34f 100644 --- a/cisco/my-comments.txt +++ b/cisco/my-comments.txt @@ -8,7 +8,7 @@ Use: 2. cht-rtr2 cht-isp: 172.18.79.4/30 3. cht-isp bezruk-isp: 172.18.79.8/30 4. bezruk-isp kazahstan-isp: 172.18.79.12/30 - 5. rostelecom-isp bezruk-isp: 172.18.79.16/30 + 5. rostelecom-isp bezruk-isp: 172.18.79.16/30 6. kazahstan-isp ssa-v-isp: 172.18.79.20/30 7. floor-sw-ssa-v ssa-v-isp: 172.18.79.24/30 8. ssa-v-isp cht-isp: 172.18.79.28/30 @@ -44,19 +44,19 @@ VTP settings: https://www.atraining.ru/protocol-vtp2/ 172.18.64.0/20 => VLANs IPs - 01. Network: 172.18.64.0/24 VLAN 220 - 02. Network: 172.18.65.0/24 VLAN 221 - 03. Network: 172.18.66.0/24 VLAN 222 - 04. Network: 172.18.67.0/24 VLAN 223 - 05. Network: 172.18.68.0/24 VLAN 224 - 06. Network: 172.18.69.0/24 VLAN 22 + 01. Network: 172.18.64.0/24 VLAN 220 (LAN1) + 02. Network: 172.18.65.0/24 VLAN 221 (LAN1) + 03. Network: 172.18.66.0/24 VLAN 222 (LAN2) + 04. Network: 172.18.67.0/24 VLAN 223 (LAN3) + 05. Network: 172.18.68.0/24 VLAN 224 (LAN3) + 06. Network: 172.18.69.0/24 VLAN 22 (NATIVE) 07. Network: 172.18.70.0/24 08. Network: 172.18.71.0/24 - 09. Network: 172.18.72.0/24 - 10. Network: 172.18.73.0/24 - 11. Network: 172.18.74.0/24 - 12. Network: 172.18.75.0/24 - 13. Network: 172.18.76.0/24 + 09. Network: 172.18.72.0/24 LAN1 -> VLAN 44 (MANAGMENT) + 10. Network: 172.18.73.0/24 LAN2 -> VLAN 44 (MANAGMENT) + 11. Network: 172.18.74.0/24 LAN3 -> VLAN 44 (MANAGMENT) + 12. Network: 172.18.75.0/24 LAN4 -> VLAN 44 (MANAGMENT) + 13. Network: 172.18.76.0/24 LAN5 -> VLAN 44 (MANAGMENT) 14. Network: 172.18.77.0/24 15. Network: 172.18.78.0/24 16. Network: 172.18.79.0/24 For ISP @@ -75,11 +75,11 @@ VTP settings: https://www.atraining.ru/protocol-vtp2/ 10.22.64.0/21 => VLANs IPs - 1. Network: 10.22.64.0/24 VLAN 225 - 2. Network: 10.22.65.0/24 VLAN 226 - 3. Network: 10.22.66.0/24 VLAN 227 - 4. Network: 10.22.67.0/24 VLAN 228 - 5. Network: 10.22.68.0/24 VLAN 229 + 1. Network: 10.22.64.0/24 VLAN 225 (LAN4) + 2. Network: 10.22.65.0/24 VLAN 226 (LAN4) + 3. Network: 10.22.66.0/24 VLAN 227 (LAN4) + 4. Network: 10.22.67.0/24 VLAN 228 (LAN5) + 5. Network: 10.22.68.0/24 VLAN 229 (LAN5) 6. Network: 10.22.69.0/24 7. Network: 10.22.70.0/24 8. Network: 10.22.71.0/24 diff --git a/cisco/netmasks.png b/cisco/netmasks.png new file mode 100644 index 0000000..82a001d Binary files /dev/null and b/cisco/netmasks.png differ diff --git a/cisco/work-production.pkt b/cisco/work-production.pkt index ad9bc12..473e3e8 100644 Binary files a/cisco/work-production.pkt and b/cisco/work-production.pkt differ diff --git a/cisco/work-test.pkt b/cisco/work-test.pkt index ad9bc12..40dc2ff 100644 Binary files a/cisco/work-test.pkt and b/cisco/work-test.pkt differ diff --git a/linux/configs/config-all.sh b/linux/configs/config-all.sh index 2acd7cd..44e9946 100644 --- a/linux/configs/config-all.sh +++ b/linux/configs/config-all.sh @@ -118,6 +118,7 @@ firewall-cmd --reload # -i - входной сетевой интерфейс; # -o - исходящий сетевой интерфейс; # -j - выбрать действие, если правило подошло. +iptables -t nat -A POSTROUTING -s 172.16.0.0/16 -j SNAT --to 192.168.0.80 --persistent # P: # INPUT - Входящие паекты