Project

General

Profile

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

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

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