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