[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
Emma#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Emma(config)#interface vlan 1
Emma(config-if)#ip address dhcp
Emma(config-if)#no shutdown
Emma(config-if)#^Z
Emma#
00:38:20: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
00:38:21: %LINEPROTO-5-UPDONWN: Line protocol on Interface Vlan1, changed state to up
Emma#
Interface Vlan1 assigned DHCP address 192.168.1.101, mask 255.255.255.0
Emma#show dhcp lease
Temp IP addr: 192.168.1.101 for peer on Interfacce: Vlan1
Temp sub net mask: 255.255.255.0
DHCP Lease server: 192.168.1.1, state: 3 Bound
DHCP transaction id: 1966
Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secs
Temp default-gateway addr: 192.168.1.1
Next timer fires after: 11:59:45
Retry count: 0 Client-ID: cisco-0019.e86a.6fc0-Vl1
HostName: Emma
Emma#show interface vlan 1
Vlan1 is up, line protocol is up
Hardware is EtherSVI, address is 0019.e86a.6fc0 (bia 0019.e86a.6fc0)
Internet address is 192.168.1.101/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
[以下略]
Cisco IOSスイッチの旧モデルの中には、VLAN1インターフェイスでDHCPクライアント機能をサポートしないものがあります。例9-8の出力は、Cisco IOSソフトウェアリリース12.2を実行する2960スイッチを使って取得されたものです。
Ciscoルータならできるかなぁと思ってCisco1841で試してみたところ、こっちはコマンドを認識する模様。switch01#show run
Building configuration...
Current configuration : 1333 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname switch01
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
username nakamura password 7 083B4D5F584B12040A
!
!
interface FastEthernet0/1
!
[1 ~ 24まで略]
interface FastEthernet0/24
!
interface Vlan1
ip address dhcp
!
!
line con 0
password 7 0822455D0A16
logging synchronous
login
exec-timeout 0 0
!
line vty 0 4
password 7 0822455D0A16
login local
transport input telnet
line vty 5 15
login local
transport input telnet
!
!
end
switch01#show dhcp lease
^
% Invalid input detected at '^' marker.