From 43a34e6a6d2ff59f677019b2df6ae1d82895f838 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Tue, 4 Sep 2018 09:28:44 +0200 Subject: support for secondary GW, and route+rule on sec interface --- ks-template/hw/dell/R7425/100g-dtn.ks | 6 ++++++ ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'ks-template') diff --git a/ks-template/hw/dell/R7425/100g-dtn.ks b/ks-template/hw/dell/R7425/100g-dtn.ks index 60f643b..c44156b 100644 --- a/ks-template/hw/dell/R7425/100g-dtn.ks +++ b/ks-template/hw/dell/R7425/100g-dtn.ks @@ -72,6 +72,12 @@ yum install -y rngd systemctl enable rngd systemctl start rngd +# Set up secondary interface routing: +echo -e "1024\tmi-01" >>/etc/iproute2/rt_tables +echo "default table mi-01 via SECGATEWAY" \ + >/etc/sysconfig/network-scripts/route-p7p1 +echo "from SECGATEWAY table mi-01" >/etc/sysconfig/network-scripts/rule-p7p1 + # try to get access to the screen: #exec < /dev/tty6 > /dev/tty6 #chvt 6 diff --git a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks index 5799d46..7ce4a9c 100644 --- a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks +++ b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks @@ -68,6 +68,12 @@ yum install -y rngd systemctl enable rngd systemctl start rngd +# Set up secondary interface routing: +echo -e "1024\tmi-01" >>/etc/iproute2/rt_tables +echo "default table mi-01 via SECGATEWAY" \ + >/etc/sysconfig/network-scripts/route-eno8 +echo "from SECGATEWAY table mi-01" >/etc/sysconfig/network-scripts/rule-eno8 + # try to get access to the screen: #exec < /dev/tty6 > /dev/tty6 #chvt 6 -- cgit v1.1