check this PR:  https://github.com/xcat2/xcat-core/pull/6755   I had fixes
last week.


Thanks,
Casandra Qiu

...................................................................
Casandra Hong Qiu
Phone: (845) 433-9291, t/l 293-9291
Office: Building 8, 3-B-04
cxh...@us.ibm.com





From:   Christian Caruthers <ccaruth...@lenovo.com>
To:     "xcat-user@lists.sourceforge.net"
            <xcat-user@lists.sourceforge.net>
Date:   07/13/2020 11:54 AM
Subject:        [EXTERNAL] [xcat-user] confignetwork issue with default gw &
            dns in CentOS 8.1



Running 2.15.1-lenovo2 xCAT release on CentOS 8.1

Compute nodes have 2 NICs:
ens3f0: 1Gb, provisioning net, 172.23.16.121/20, gw is .1
ens1f0: 50Gb highspeed, 172.25.16.121/24, no gw

When I run "confignetwork" as a postbootscript, ens1f0 is set up correctly
with an IP on the hifhspeed net and nothing else. If I run "confignetwork
-s" as a postbootscript, both NICs are setup w/ IP, but both get the
default gateway applied.

Also, no DNS is ever set up. I've defined site.nameservers as well as
network.nameservers & network.domain for the prov network.

lsdef -t network prov
Object name: prov
    dhcpserver=<xcatmaster>
    domain=hdp.local
    gateway=172.23.16.1
    mask=255.255.240.0
    mgtifname=ens2f0
    mtu=1500
    nameservers=172.23.16.242
    net=172.23.16.0
    ntpservers=172.23.16.1
    tftpserver=<xcatmaster>
lsdef -t network storage
Object name: storage
    mask=255.255.255.0
    mgtifname=ens2f0
    mtu=1500
    net=172.25.16.0

After running confignetwork -s, I cannot remove the errant gw setting from
ens1f0 (nmcli c mod xcat-ens1f0 -ipv4.gateway 172.23.16.1). The only way
I've found to fix ens1f0's gw setting is to set ipv4.never-default to yes
and bounce the interface. To fix DNS, I have to add the DNS to ens3f0:
nmcli c mod xcat-ens3f0 ipv4.dns {DNSSERVER} ipv4.dns-search {DOMAIN} and
restart networkmanager to get things working correctly.

Regards,
Christian Caruthers
Lenovo Professional Services
Mobile: 757-289-9872_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=n1LR_Py9TQX0dVqfGTbLHUMGx25-C8VtBDS0nCzyNXY&m=iA_NWkc6N-YVui__ifqrPXS3jtWhIDHLo_CtUmsIdsI&s=nmrIDXymGR1ovDE2YY-psdySc_bb6HT94nlyCsN82X4&e=



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

Reply via email to