Most likely the issue is that routes associated with your network
interfaces are interfering with your externaldefault route.

I think this might work, keep all of this:
# Creation of the route:
chdef -t route externaldefault net=default mask=0.0.0.0 gateway=192.168.1.1
ifname=bond0

# Assignment of the route to the node:
makeroutes login01 -r externaldefault

chdef login01 postscripts="confignetwork,setroute replace"

And then add some extra configuration options your nicextraparams. For the
NIC you want to be associated with your default route, add this:
chdef login01 nicextraparams.bond0="DEFROUTE=yes GATEWAY=192.168.1.1"

for any of the other NICs you are configuring using confignetwork:
chdef login01 nicextraparams.OTHER_NIC_NAME="DEFROUTE=no"



From:   aaronhc...@gmail.com
To:     xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date:   04/29/2021 09:39 AM
Subject:        [EXTERNAL] [xcat-user] Login node route after reinstall



I've configured a route for a login node so that it's default route is its
external interface.

# Creation of the route:
chdef -t route externaldefault net=default mask=0.0.0.0 gateway=192.168.1.1
ifname=bond0

# Assignment of the route to the node:
makeroutes login01 -r externaldefault

# Configuring the route on the node:
updatenode login01 -P setroute

That works.  At that point, the node uses the correct route, and users can
log in.

However, if I reinstall the node, the route is gone.

I tried several things from reading the xCAT docs, but none of them work
post reinstall.

chdef -t node -o login01 -m postscripts="confignetwork,setroute add
externaldefault"

chdef -t node -o login01 -p postscripts="setroute replace"

Anyone know what piece is missing or what I'm doing incorrectly?
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user



_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to