GNS3におけるDHCPサーバーについて

  • フォーラムは新サイトへ移行しました。
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 | 投稿日時 2014-2-24 22:20
TAKA_subnet  新米   投稿数: 4
GNS3上でDHCPサーバーを作成し、ルーター側で
(config-if)ip address dhcp
(config-if)no shut
を実行したのですが、IPアドレスを取得できませんでした。
GNS3上では不可能なのでしょうか?
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-2-24 23:20
arashi1977  長老 居住地: 広島  投稿数: 1715
すんごい質問がざっくりなのでなんとも言えませんが、
・DHCPサーバはどのように作りましたか?
・DHCPクライアントであるルータとはどういう接続ですか?
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-2-25 0:07
TAKA_subnet  新米   投稿数: 4
おおざっぱですいません。
DHCPサーバの作成ですがC2691でプール作成、ネットワークアドレス指定、デフォルトゲートウェイ指定を行い以下のようになっています。
DHCP#sh ip dhcp pool
Pool user1 :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 0
Pending event : none
1 subnet is currently in the pool :
Current index IP address range Leased addresses
192.168.12.1 192.168.12.1 - 192.168.12.254 0

接続ですが
DHCPサーバー(f0/0)------------(f0/0)DHCPクライアント
このようになっています。
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-2-25 8:17
arashi1977  長老 居住地: 広島  投稿数: 1715
適当にやってみましたけど、出来ましたよー
model: Cisco 3725
IOS: 12.4(15)T14

R1 fa0/0 -- fa0/0 R2

な状態で R2側をクライアントとして、ちゃんとアドレス設定されました。
サーバ側の確認結果はこちら
R1#sh ip dhcp
*Mar  1 00:02:51.651: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip dhcp pool

Pool POOL :
 Utilization mark (high/low)    : 100 / 0
 Subnet size (first/next)       : 0 / 0 
 Total addresses                : 254
 Leased addresses               : 1
 Pending event                  : none
 1 subnet is currently in the pool :
 Current index        IP address range                    Leased addresses
 10.2.1.3             10.2.1.1         - 10.2.1.254        1
なので、できないわけではなさそうです。
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-2-25 16:40
TAKA_subnet  新米   投稿数: 4
やはりできるはずですよね。。。
サーバー側の設定は
R1(config)#ip dhcp pool lan1
R1(dhcp-config)#network 10.1.1.0 255.255.255.0
R1(dhcp-config)#default-router 10.1.1.254
こんな感じで設定しています。
オプションの部分は弄っていません。


クライアント側は
R2(config)#int f0/0
R2(config-if)#ip address dhcp
R2(config-if)#no shut

設定で足りない部分があるのでしょうか?
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-2-25 18:06 | 最終変更
ゲスト    投稿数: 0
私も普通に使えましたね。
参考にログも張っておきます。

無いとは思いますが、service dhcp うってみるのはいかがでしょうか。
あと、サーバ側のコンフィグが分かりませんが、IFはアドレス振って開放されてますよね?


Router(config)#hostname DHCP-SV
DHCP-SV(config)#ip dhcp pll ool lan1
DHCP-SV(dhcp-config)#network 10.1.1.0 255.255.255.0
DHCP-SV(dhcp-config)#default-router 10.1.1.254
DHCP-SV(dhcp-config)#end
DHCP-SV#
DHCP-SV#conf t
Enter configuration commands, one per line. End with CNTL/Z.
DHCP-SV(config)#int fa0/0
DHCP-SV(config-if)#ip add
DHCP-SV(config-if)#ip address 10.1.1.254 255.255.255.0
DHCP-SV(config-if)#no shut
DHCP-SV(config-if)#end
DHCP-SV#
DHCP-SV#debug ip dhcp server events
*Mar 1 00:05:22.051: DHCPD: checking for expired leases.
*Mar 1 00:05:57.727: DHCPD: Sending notification of DISCOVER:
*Mar 1 00:05:57.727: DHCPD: htype 1 chaddr c201.1594.0000
*Mar 1 00:05:57.731: DHCPD: remote id 020a00000a0101fe00000000
*Mar 1 00:05:57.731: DHCPD: circuit id 00000000
*Mar 1 00:05:57.735: DHCPD: Seeing if there is an internally specified pool class:
*Mar 1 00:05:57.735: DHCPD: htype 1 chaddr c201.1594.0000
*Mar 1 00:05:57.739: DHCPD: remote id 020a00000a0101fe00000000
*Mar 1 00:05:57.739: DHCPD: circuit id 00000000
*Mar 1 00:05:59.743: DHCPD: Adding binding to radix tree (10.1.1.1)
*Mar 1 00:05:59.743: DHCPD: Adding binding to hash tree
*Mar 1 00:05:59.747: DHCPD: assigned IP address 10.1.1.1 to client 0063.6973.636f.2d63.3230.312e.3135.3934.2e30.3030.302d.4661.302f.30.
*Mar 1 00:05:59.755: DHCPD: Sending notification of ASSIGNMENT:
*Mar 1 00:05:59.759: DHCPD: address 10.1.1.1 mask 255.255.255.0
*Mar 1 00:05:59.759: DHCPD: htype 1 chaddr c201.1594.0000
*Mar 1 00:05:59.763: DHCPD: lease time remaining (secs) = 86400
DHCP-SV#no debug all
All possible debugging has been turned off
DHCP-SV#

-----------------------------------------------------------------

DHCP-CL(config)#int fa0/0
DHCP-CL(config-if)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
DHCP-CL(config-if)#ip address dhcp
DHCP-CL(config-if)#no shut
DHCP-CL(config-if)#
*Mar 1 00:05:50.939: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:05:51.939: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Mar 1 00:06:02.039: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 10.1.1.1, mask 255.255.255.0, hostname DHCP-CL

DHCP-CL(config-if)#do showip ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.1.1.1 YES DHCP up up
FastEthernet0/1 unassigned YES unset administratively down down
DHCP-CL(config-if)#end
DHCP-CL#
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-2-25 20:32
TAKA_subnet  新米   投稿数: 4
問題解決しました。
サーバー側のf0/0にアドレスを割り当ててませんでした。
jupiter134さん、arashi1977さん、ありがとうございました。

  >フォーラム検索へ


Copyright (c) 2020 Ping-t All rights reserved.
ログイン
ユーザ名 or E-Mailアドレス:

パスワード:







Contact

LPI-Japan Logo

LPI Logo