Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Reset

6 posts tagged #коммутаторы: articles, how-tos, projects and jobs from the portal's IT professionals.

Редакция КоммитРедакция портала
commit 6b9e1f0 · 19 days ago

🌐 Machine-translated from Russian. Show original

⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.

In this part:

Site-to-site IPsec

The most convenient VPN wizard → IPsec Wizard (Site-to-Site type) is most convenient for office communication:

  1. Remote gateway — an external IP or DDNS name of the second office.
  2. Authentication is a shared key (long and random) or certificates.
  3. Local and remote subnets are non-overlapping (addressing plan).
  4. The wizard will create the tunnel, routes, and policies; check that policies allow only the necessary traffic between offices.

If the other end is not FortiGate (MikroTik, another brand), agree on phase 1 and 2 parameters: encryption algorithms, DH groups, key lifetime — they must match on both sides. For MikroTik, see the series.

Remote employee access

FortiGate supports remote access via IPsec (dial-up) and the FortiClient client. Recommendations:

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 13a23e5 · 19 days ago

🌐 Machine-translated from Russian. Show original

⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.

In this part:

What is FortiGate

FortiGate is a next-generation firewall (NGFW) from Fortinet: routing, firewall policies, NAT, VPN, and security profiles (antivirus, IPS, web filtering, application control). Managed via web interface and CLI; for multiple devices — centrally via FortiManager.

First connection

  1. Connect to the management port (default address is specified in the model documentation).
  2. Change the administrator password, set the device name and time zone, update FortiOS to the recommended version.
  3. Restrict administrative access:
config system interface
    edit "port1"
        set ip 192.168.99.1 255.255.255.0
        set allowaccess ping https ssh
    next
    edit "wan1"
        set mode dhcp
        set allowaccess ping
    next
end

⚠️ Do not allow HTTPS and SSH administration on the WAN interface. If external access is needed — only via VPN or from trusted addresses (Trusted Hosts at the administrator account).

Interfaces and VLANs

config system interface
    edit "vlan10"
        set vdom "root"
        set interface "port2"
        set vlanid 10
        set ip 192.168.10.1 255.255.255.0
        set allowaccess ping
    next
end
Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 3d15df8 · 19 days ago

🌐 Machine-translated from Russian. Show original

⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.

In this part:

Huawei VRP: modes

Huawei's command line (VRP) differs from Cisco's:

ActionCiscoHuawei VRP
Configuration modeconfigure terminalsystem-view
Show configurationshow running-configdisplay current-configuration
Go aboveexitquit
Savewritesave
Remove theno ...undo ...

Huawei: VLAN, access, and trunk

system-view
sysname SW-ACCESS-02
vlan batch 10 20 30 40 99

interface GigabitEthernet0/0/5
 description PC-Office-05
 port link-type access
 port default vlan 10
 quit

interface GigabitEthernet0/0/24
 description Uplink
 port link-type trunk
 port trunk allow-pass vlan 10 20 30 40 99
 quit

interface Vlanif99
 ip address 192.168.99.12 255.255.255.0
 quit
ip route-static 0.0.0.0 0.0.0.0 192.168.99.1

Huawei: SSH access

stelnet server enable
aaa
 local-user admin password irreversible-cipher <сложный-пароль>
 local-user admin service-type ssh
 local-user admin privilege level 15
 quit
user-interface vty 0 4
 authentication-mode aaa
 protocol inbound ssh

The AAA and SSH command sets differ between VRP versions — check the documentation for your model.

Huawei: useful displays

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit c6ab49b · 19 days ago

🌐 Machine-translated from Russian. Show original

⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.

In this part:

Why together

SNR and Eltex switches use a command line in the style of Cisco IOS: modes, command structure, and logic are similar. Once you master one, it's easy to work with others — but there are differences in details, especially in the syntax of VLAN lists.

CLI modes

switch> enable                      ! привилегированный режим
switch# configure terminal          ! режим глобальной конфигурации
switch(config)# interface ...       ! настройка интерфейса
switch(config-if)# exit
switch# show running-config         ! текущая конфигурация
switch# write                       ! сохранить (у Cisco также copy running-config startup-config)

Basic setup

hostname SW-CORE-01
username admin privilege 15 secret <сложный-пароль>
ip domain-name corp.example.kz
crypto key generate rsa modulus 2048      ! для SSH (у SNR и Eltex команда может отличаться)
line vty 0 15
 transport input ssh
 login local
no ip http server

VLAN

vlan 10
 name USERS
vlan 30
 name CCTV
vlan 99
 name MGMT

Management address in VLAN 99:

interface vlan 99
 ip address 192.168.99.11 255.255.255.0
ip default-gateway 192.168.99.1

Access port

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 424bec3 · 19 days ago

🌐 Machine-translated from Russian. Show original

⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.

In this part:

What is Omada

Omada is a line of TP-Link business equipment (gateways, switches, access points) with centralized control via a controller:

  • hardware controller (separate device);
  • software controller on a server or PC;
  • Cloud controller.

Standalone devices can be configured individually via the web interface, but on a network of several devices, a controller is more convenient.

Connecting devices to the controller

  1. Install or enable the controller, create a website (office).
  2. Devices in the same network are detected by the controller itself; in another network — specify the controller's address via the DHCP option or detection utility.
  3. Adopt devices in the controller — after that, settings are set centrally.
  4. Update the firmware of all devices from the controller.

Networks and VLANs

In the network settings section, create networks according to the addressing plan, DHCP. For switches — port profiles:

  • "Camera" profile — access VLAN 30;
  • the "Access Point" profile — native management VLAN + user and guest VLAN tags;
  • Uplink profile — all VLANs.
Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit d1d4414 · 19 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Why VLAN

A VLAN divides one physical switch into several logical networks. Cameras, employees, guests, and servers end up on different networks, and traffic between them passes only through the router or firewall — where it can be controlled.

Access and trunk

| Port type | What transmits | Where | is connected
| --- | --- | --- |
| Access | one tagless VLAN | computer, printer, camera, |
| Trunk | multiple VLANs with 802.1Q tags | another switch, router, access point, virtualization server, |
| Hybrid / general (for some brands) | one VLAN without a tag and several with tags | IP phone with computer behind it, access points, |

Native VLAN on trunk — VLAN transmitted without a tag. It must match at both ends of the link, otherwise traffic will "flow" to the wrong place.

Addressing plan

Make it before setting up the equipment:

VLANNameSubnetGateway
10USERS192.168.10.0/24192.168.10.1
20SERVERS192.168.20.0/24192.168.20.1
30CCTV192.168.30.0/24192.168.30.1
40GUEST192.168.40.0/24192.168.40.1
99MGMT192.168.99.0/24192.168.99.1
  • Management VLAN (MGMT) — separate: addresses of switches, access points, controllers. Access — administrators only.
  • For branches — non-overlapping bands (for example, 10...0/24).

Spanning Tree

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up