|
Kommutatordagi dastlabki sozlamalar
|
bet | 5/9 | Sana | 19.05.2024 | Hajmi | 177,07 Kb. | | #243647 |
Bog'liq Tarmoq xavfsizligi mustaqil ish
Kommutatordagi dastlabki sozlamalar
1: hostname LAN-switch
2:!
3: no ip domain lookup
4:!
5: line con 0
6: exec-t 0 0
7: logg sync
8: exit
9:!
10: interface range fastEthernet0/5-7
11: switchport mode access
12: spanning-tree portfast
13: exit
14:!
15: interface Vlan1
16: ip address 192.168.1.2 255.255.255.0
17: no shutdown
18: exit
Routerdagi dastlabki sozlamalar
1: hostname LAN-router
2:!
3: no ip domain lookup
4:!
5: line con 0
6: exec-t 0 0
7: logg sync
8: exit
9:!
10: interface GigabitEthernet0/1
11: ip address dhcp
12: no shutdown
13: exit
Kommutatordagi DHCP server sozlamalari
Keling, oxirgi qurilmalar uchun DHCP serverini sozlaymiz:
1: ip dhcp excluded-address 192.168.1.2 192.168.1.10
2:!
3: ip dhcp pool LAN
4: network 192.168.1.0 255.255.255.0
5: default-router 192.168.1.1
6: exit
Routerni DHCP klient sifatida sozlash
Umuman olganda, router interfeysida manzilni olish uchun quyidagi buyruq ishlatiladi:
1: interface GigabitEthernet0/1
2: ip address dhcp
3: exit
Biroq, agar manzilni statik tarzda berish kerak bo'lsa, unda nafaqat kerakli router
interfeysining MAC manzilini, balki uning DHCP klient identifikatorini (klient
identifikatori) bilish kerak. Mijoz identifikatori ikki shaklda taqdim etilishi
mumkin :
•
7 baytli nuqtali o'n oltilik ko'rinish. Masalan, 01100.04f3.0158.b3 bu yerda 01
chekilgan media turini, qolgan baytlar esa DHCP mijozining MAC manzilini
bildiradi.
•
27 baytli nuqtali o'n oltilik ko'rinish. Masalan,
7665.6e64.6f72.2d30.3032.342e.3937.6230.2e33.3734.312d.4661.302f.31.
Ushbu olti burchakli qiymat uchun ekvivalent ASCII qatori vendor-
0024.97b0.3741 boʻlib, bunda vendor etkazib berovchi, 0024.97b0.3741
chiquvchi interfeys MAC manzilini, oxirgi raqamlar esa chiquvchi
interfeysning nomi va raqamidir.
Cisco IOS sukut bo'yicha oxirgi belgiga mos keladi. Klient identifikatorining
yanada ixcham ko'rinishiga o'tish uchun siz qo'shimcha sozlamalarni o'rnatishingiz
kerak:
1: interface GigabitEthernet0/1
2: ip address dhcp client-id GigabitEthernet0/1
3: exit
Routerning GigabitEthernet0/1 interfeysining MAC manzilini kommutatorda
ko'rsatgandan so'ng, yo'riqnoma uchun alohida DHCP serverini sozlash kerak:
1: ip dhcp pool WAN
2: host 192.168.1.1 255.255.255.0
3: client-identifier 0188.1dfc.e4f8.b9
4: exit
Bu yerda 0188.1dfc.e4f8.b9:
• 01 - Ethernet muhiti turi,
• 881d.fce4.f8b9 - routerning GigabitEthernet0/1 interfeysining MAC manzili.
|
| |