Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CISCO:
- vlan database
- vlan 100-102,150
- interface vlan 1
- ip address 192.168.1.254 255.255.255.0
- no ip address dhcp
- !
- interface vlan 100
- name OFFICE
- !
- interface vlan 101
- name HR
- !
- interface vlan 102
- name LAN
- !
- interface vlan 150
- name PRINTERS
- !
- interface gigabitethernet1
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet2
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet3
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet4
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet5
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet6
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet7
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet8
- switchport mode access
- switchport access vlan 100
- !
- interface gigabitethernet9
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet10
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet11
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet12
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet13
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet14
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet15
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet16
- switchport mode access
- switchport access vlan 101
- !
- interface gigabitethernet17
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet18
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet19
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet20
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet21
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet22
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet23
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet24
- switchport mode access
- switchport access vlan 102
- !
- interface gigabitethernet25
- switchport mode access
- switchport access vlan 150
- !
- interface gigabitethernet26
- switchport trunk allowed vlan add 100-102,150
- !
- MIKROTIK:
- /interface vlan
- add interface=ETH1_SWITCH l2mtu=1522 name=100 vlan-id=100
- add interface=ETH1_SWITCH l2mtu=1522 name=101 vlan-id=101
- add interface=ETH1_SWITCH l2mtu=1522 name=102 vlan-id=102
- add interface=ETH1_SWITCH l2mtu=1522 name=150 vlan-id=150
- /ip pool
- add name=100 ranges=10.0.100.5-10.0.100.254
- add name=101 ranges=10.0.101.5-10.0.101.254
- add name=102 ranges=10.0.102.5-10.0.102.254
- add name=150 ranges=10.0.150.5-10.0.150.254
- /ip dhcp-server
- add address-pool=100 disabled=no interface=100 name=100
- add address-pool=101 disabled=no interface=101 name=101
- add address-pool=102 disabled=no interface=102 name=102
- add address-pool=150 disabled=no interface=150 name=150
- /ip address
- add address=192.168.1.1/24 interface=ETH1_SWITCH network=192.168.1.0
- add address=10.0.100.1/24 interface=100 network=10.0.100.0
- add address=10.0.101.1/24 interface=101 network=10.0.101.0
- add address=10.0.102.1/24 interface=102 network=10.0.102.0
- add address=10.0.150.1/24 interface=150 network=10.0.150.0
- /ip dhcp-server network
- add address=10.0.100.0/24 dns-server=8.8.8.8 domain=vlan100 gateway=10.0.100.1
- add address=10.0.101.0/24 dns-server=8.8.8.8 domain=vlan101 gateway=10.0.101.1
- add address=10.0.102.0/24 dns-server=8.8.8.8 domain=vlan102 gateway=10.0.102.1
- add address=10.0.150.0/24 dns-server=8.8.8.8 domain=vlan150 gateway=10.0.150.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement