Project

General

Profile

Cisco1812JVLan情報の再構築 » History » Version 1

Tsutomu KIMURA, 07/14/2013 11:49 PM

1 1 Tsutomu KIMURA
h1. 前口上
2
3
滅多にある事ではないが、CFの交換作業をやっているとファイルのうっかりコピー忘れがある。それがVLanデータベースの構成情報を持っているvlan.datだと、目も当てられない事態になる(というか、なった)。
4
5
で、復活の仕方である。
6
7
h1. 復活の仕方
8
<pre>
9
tomcat02#vlan database 
10
% Warning: It is recommended to configure VLAN from config mode,
11
  as VLAN database mode is being deprecated. Please consult user
12
  documentation for configuring VTP/VLAN in config mode.
13
14
15
tomcat02(vlan)#show
16
  VLAN ISL Id: 1
17
    Name: default
18
    Media Type: Ethernet
19
    VLAN 802.10 Id: 100001
20
    State: Operational
21
    MTU: 1500
22
    Translational Bridged VLAN: 1002
23
    Translational Bridged VLAN: 1003
24
(中略)
25
  VLAN ISL Id: 1005
26
    Name: trnet-default
27
    Media Type: Token Ring Net
28
    VLAN 802.10 Id: 101005
29
    State: Operational
30
    MTU: 1500
31
    Bridge Type: SRB
32
    Bridge Number: 1
33
    STP Type: IBM
34
</pre>
35
36
長いので略するが、いわゆるデフォルトのVlanインタフェイス以外は存在しない。そこで…
37
38
<pre>
39
tomcat02(vlan)#?
40
VLAN database editing buffer manipulation commands:
41
  abort  Exit mode without applying the changes
42
  apply  Apply current changes and bump revision number
43
  exit   Apply changes, bump revision number, and exit mode
44
  no     Negate a command or set its defaults
45
  reset  Abandon current changes and reread current database
46
  show   Show database information
47
  vlan   Add, delete, or modify values associated with a single VLAN
48
  vtp    Perform VTP administrative functions.
49
50
tomcat02(vlan)#apply 
51
APPLY completed.
52
53
tomcat02(vlan)#vlan 32 
54
VLAN 32 added:
55
    Name: VLAN0032
56
tomcat02(vlan)#exit
57
APPLY completed.
58
Exiting....
59
tomcat02#dir flash:
60
Directory of flash:/
61
62
(略)
63
   18  -rw-         660  Aug 11 2012 20:56:22 +09:00  vlan.dat
64
(略)
65
66
512819200 bytes total (366755840 bytes free)
67
</pre>
68
69
以上でよい。
70
71
要は、
72
73
* vlanコマンドでVLan構築モードへ移行。
74
* applyコマンドを使用する。
75
76
これで良い…筈だ。