.


:




:

































 

 

 

 


. ,




, , , , (. ).

1. Cisco-1 SW-L2-1 (mnlin), , mnlin (. 3), FTP-.

3

 

2. DHCP Relay Agent. mnlin web- , 192.168.24.10. Network ApplicationDHCPDHCP Relay Global Settings DHCP Relay State DHCP Relay Agent Information Option 82 Enable (.4).

: MAC- , DHCP- 82, DHCP Relay Agent Information Option 82 Remote-ID.

 

4 DHCP Relay Global Settings

 

DHCP- Network ApplicationDHCPDHCP RelayDHCP Interface Settings (.5). (System) IP- : 192.168.24.1, .

 

5 DHCP Interface Settings

 

3. GE0/0 Cisco. (mnlin) Cisco . picocom:

 

root@mnlin# picocom /dev/ttyS0

 

ttyS0 com1, ttyS1 , com2 .. picocom Ctrl+A+Q.

 

cisco-1>

cisco-1>enable /

cisco-1#configure terminal /

cisco-1(config)#interface gigabitethernet 0/0 /

cisco-1(config-if)#ip address 192.168.24.1 255.255.255.0 / ip-

cisco-1(config-if)#no shutdown /

cisco-1(config-if)#end /

 

4. , 82, . , 82, . :

a) , .6, 82.

.6

b) 9 8. DHCP Discover 82, DHCP- (192.168.24.1). web- , MonitoringMirrorPort Mirror Settings 9 8 .7.

.7

c) eth1 mnlin, 8 . Start , .

d) ( ) DHCP 5 .

e) Option 82 DHCP Discover. 10 . bootp. DHCP, 192.168.24.1 ( Discover), Option (82): Agent information option. value 82. .

8 82

f) 7.

5. , .3.

6. DHCP-. (mnlin) Cisco DHCP- , .3.

DHCP- : / .

cisco-1#configure terminal

cisco-1(config)#ip dhcp database ftp://admin:@192.168.24.31/dhcp-db / DHCP- (FTP- mnlin)

cisco-1(config)#service dhcp / DHCP

cisco-1(config)#ip dhcp use class /

cisco-1(config)#ip dhcp excluded-address 192.168.24.1 192.168.24.59 / ,

cisco-1(config)#ip dhcp class port5 / port5

cisco-1(config-dhcp-class)#relay agent information /, option 82

cisco-1(config-dhcp-class-relayinfo)#relay-information hex 01060004000100050208000634080464befc / ; 82

cisco-1(config-dhcp-class-relayinfo)#end /

cisco-1#

cisco-1#configure terminal

cisco-1(config)#ip dhcp class port7

cisco-1(config-dhcp-class)#relay agent information

cisco-1(config-dhcp-class-relayinfo)#relay-information hex 01060004000100070208000634080464befc

cisco-1(config-dhcp-class-relayinfo)#end

 

cisco-1#configure terminal

cisco-1(config)#ip dhcp class common-net / port5 port7

cisco-1(config-dhcp-class)#relay agent information

cisco-1(config-dhcp-class-relayinfo)#end

cisco-1#

cisco-1#configure terminal

cisco-1(config)#ip dhcp pool LAN1 / LAN1 , DHCP-

cisco-1(dhcp-config)#network 192.168.24.0 255.255.255.0 / , DHCP-

cisco-1(dhcp-config)#domain-name lan1.maket /

cisco-1(dhcp-config)#dns-server 192.168.24.1 /DNS-

cisco-1(dhcp-config)#default-router 192.168.24.1 /

cisco-1(dhcp-config)#class port5 / , port5

cisco-1(config-dhcp-pool-class)#address range 192.168.24.101 192.168.24.101 / ( , , )

cisco-1(config-dhcp-pool-class)#end

cisco-1#configure terminal

cisco-1(config)#ip dhcp pool LAN1 / LAN1

cisco-1(dhcp-config)#class port7

cisco-1(config-dhcp-pool-class)#address range 192.168.24.102 192.168.24.102

cisco-1(config-dhcp-pool-class)#end

cisco-1#

cisco-1#configure terminal

cisco-1(config)#ip dhcp pool LAN1

cisco-1(dhcp-config)#class common-net

cisco-1(config-dhcp-pool-class)#end

cisco-1#

cisco-1#show running-config /

 

DHCP- :

cisco-1#debug ip dhcp server class

DHCP server class debugging is on.

 

DHCP- .

7. IP-.

DHCP- Cisco :

cisco-1#show ip dhcp bindings

cisco-1#show ip dhcp conflicts

cisco-1#show ip dhcp database

cisco-1#show ip dhcp server statistics

 

:

cisco-1#clear ip dhcp binding *

cisco-1#clear ip dhcp conflict *

cisco-1#clear ip dhcp server statistics

 

8. , DHCP- A B (.3) .

: 82 82 MAC- .

 

:

1. DHCP, 82, .

2. .

3. , :

- ( . 3);

- ;

- DHCP- A B.

:

1. RFC 2131: Dynamic Host Configuration Protocol, R. Droms, Bucknell University, March 1997. http://tools.ietf.org/html/rfc2131

2. RFC 3046: DHCP Relay Agent Information Option M. Patrick, Motorola BCS, January 2001. http://tools.ietf.org/html/rfc3046

3. .. DHCP ( NAT/PAT). http://book.itep.ru/4/4/dhcp.htm.





:


: 2016-11-02; !; : 767 |


:

:

.
==> ...

1503 - | 1340 -


© 2015-2024 lektsii.org - -

: 0.028 .