Virlの検証用Config
らくがきちょうさんからのパクリ
Cisco IOSv
hostname IOSv
service timestamps debug datetime msec localtime
service timestamps log datetime msec localtime
clock timezone JST +9
no ip domain-lookup
no banner exec ^C
no banner incoming ^C
no banner login ^C
enable secret cisco
line con 0
exec-timeout 300 0
privilege level 15
logging synchronous
length 0
line vty 0 4
exec-timeout 300 0
privilege level 15
logging synchronous
no login
length 0
transport input telnet
end
Cisco CSR1000V
hostname CSR1000V
service timestamps debug datetime msec localtime
service timestamps log datetime msec localtime
clock timezone JST +9
no ip domain-lookup
enable secret cisco
line con 0
exec-timeout 300 0
privilege level 15
logging synchronous
length 0
line vty 0 4
exec-timeout 300 0
privilege level 15
logging synchronous
no login
length 0
transport input telnet
end
Cisco IOS-XRv
hostname XRv
clock timezone JST 9
service timestamps log datetime localtime msec
service timestamps debug datetime localtime msec
telnet vrf default ipv4 server max-servers 5
domain lookup disable
enable secret cisco
line default
exec-timeout 300 0
length 0
end
Cisco NX-OSv
license grace-period
hostname NX-OSv
no ip domain-lookup
clock timezone JST 9 0
line console
exec-timeout 300
terminal length 0
enable secret cisco
line vty
exec-timeout 300
logging timestamp milliseconds
Cisco ASAv
hostname ASAv
clock timezone JST 9
no pager
telnet timeout 300
ssh timeout 60
console timeout 60
policy-map global_policy
class inspection_default
inspect icmp
enable secret cisco
no service call-home
clear config call-home
end
LXC
#cloud-config
bootcmd:- ln -s -t /etc/rc.d /etc/rc.localhostname: lxc-4
manage_etc_hosts: true
runcmd:- systemctl start rc-local - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config - echo "UseDNS no" >> /etc/ssh/sshd_config - service ssh restart - service sshd restartusers:
- default - gecos: User configured by VIRL Configuration Engine 0.23.10 lock-passwd: false name: cisco plain-text-passwd: cisco shell: /bin/bash ssh-authorized-keys: - VIRL-USER-SSH-PUBLIC-KEY sudo: ALL=(ALL) ALLwrite_files:
- path: /etc/systemd/system/dhclient@.service content: | [Unit] Description=Run dhclient on %i interface After=network.target [Service] Type=oneshot ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease RemainAfterExit=yes owner: root:root permissions: '0644' - path: /etc/rc.local owner: root:root permissions: '0755' content: |- #!/bin/sh ifconfig eth1 up 10.0.128.6 netmask 255.255.255.252 ★ route add -net 0.0.0.0 gw 192.168.1.1 dev eth1 ★ exit 0
なんか改行入ってたりスペース入ってたりで、うまくいかない。
画面上部のConfiguration > Built in initial configurations でコンフィグ作って
適宜IPアドレスとデフォゲを変える方がいい。
★の行を変える。
Server
Ubuntuベースのサーバ。
2台以上動作させるとguestendpointとかいって、ログインできない事象あり。
要確認
コメント
最新を表示する
NG表示方式
NGID一覧