自动化脚本,自动配置:
vyos@vyos:~$ cat setup_eip_test_env.sh
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
delete interfaces ethernet eth2 firewall
delete interfaces ethernet eth2 address 31.0.0.1/28
set interfaces ethernet eth2 address 1000::1/64
set interfaces ethernet eth2 vif 1111 ipv6 router-advert send-advert true
set interfaces ethernet eth2 vif 1111 ipv6 router-advert prefix 2000::/64
set interfaces ethernet eth2 vif 1111 ipv6 router-advert managed-flag true
set interfaces ethernet eth2 vif 1111 ipv6 router-advert other-config-flag true
set interfaces ethernet eth2 vif 1111 ipv6 router-advert default-preference high
commit
save
exit
网友评论