このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
Tag Cloud
このページへのアクセス
今日: 15 / 昨日: 1
総計: 550
- Dokuwiki.fl8.jp(2309)
- 13 CentOS6メール設定(57)
- FreeBSD カーネル再構築(52)
- 75 Proftpd(51)
最近の更新
このページへのアクセス
今日: 15 / 昨日: 1
総計: 550
下記でconfigを別名で保存すると、/config 以下にバックアップが作成される。
$ configure # save backup.config Saving configuration to '/config/backup.config'... Done [edit]
configをvyattaのコマンド形式で出力するツール
/opt/vyatta/sbin/vyatta-config-gen-sets.pl
実行すると、下記のように出力されるので、
そのままコピペで実行すればリストアできる。
$ /opt/vyatta/sbin/vyatta-config-gen-sets.pl /config/backup.config
set interfaces ethernet eth0 address '10.10.100.1/24'
set interfaces ethernet eth0 duplex 'auto'
set interfaces ethernet eth0 hw-id '52:54:00:2e:6e:99'
set interfaces ethernet eth0 smp_affinity 'auto'
set interfaces ethernet eth0 speed 'auto'
set interfaces ethernet eth1 address '192.168.1.1/24'
set interfaces ethernet eth1 duplex 'auto'
set interfaces ethernet eth1 hw-id '00:16:3e:65:3d:ae'
set interfaces ethernet eth1 smp_affinity 'auto'
set interfaces ethernet eth1 speed 'auto'
set interfaces loopback 'lo'
set nat source rule 10 outbound-interface 'eth0'
set nat source rule 10 translation address 'masquerade'
set service ssh port '22'
set service ssh protocol-version 'v2'
set system config-management commit-revisions '20'
set system console device ttyS0 speed '9600'
set system gateway-address '10.10.100.10'
set system host-name 'vyatta01.optcube.com'
set system login user vyatta authentication encrypted-password '$1$VLuYJste$oH0QplJHO3Ig44aI9g2Fe1'
set system login user vyatta level 'admin'
set system name-server '10.10.100.2'
set system name-server '10.10.100.5'
set system ntp server '0.vyatta.pool.ntp.org'
set system ntp server '1.vyatta.pool.ntp.org'
set system ntp server '2.vyatta.pool.ntp.org'
set system package auto-sync '1'
set system package repository community components 'main'
set system package repository community distribution 'stable'
set system package repository community password ''
set system package repository community url 'http://packages.vyatta.com/vyatta'
set system package repository community username ''
set system syslog global facility all level 'notice'
set system syslog global facility protocols level 'debug'
set system time-zone 'America/Los_Angeles'