Subversion Repositories ALCASAR

Rev

Rev 2964 | Rev 3018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2964 Rev 2974
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2964 2021-07-04 09:23:08Z rexy $
2
# $Id: alcasar-conf.sh 2974 2021-07-16 17:30:14Z rexy $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by REXY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 324... Line 324...
324
ACCOUNTING=no
324
ACCOUNTING=no
325
USERCTL=no
325
USERCTL=no
326
MTU=$MTU
326
MTU=$MTU
327
NOZEROCONF=yes
327
NOZEROCONF=yes
328
EOF
328
EOF
329
		else
-
 
330
			cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$EXTIF
329
		else # set the static configuration for EXTIF in multi-gw mode
331
DEVICE=$EXTIF
-
 
332
BOOTPROTO=static
-
 
333
IPADDR=$PUBLIC_IP
-
 
334
NETMASK=$PUBLIC_NETMASK
-
 
335
GATEWAY=$PUBLIC_GATEWAY
-
 
336
DNS1=127.0.0.1
-
 
337
RESOLV_MODS=yes
-
 
338
ONBOOT=yes
-
 
339
METRIC=10
-
 
340
MII_NOT_SUPPORTED=yes
330
			$DIR_BIN/alcasar-network.sh --apply
341
IPV6INIT=no
-
 
342
IPV6TO4INIT=no
-
 
343
ACCOUNTING=no
-
 
344
USERCTL=no
-
 
345
MTU=$MTU
-
 
346
NOZEROCONF=yes
-
 
347
EOF
-
 
348
		fi
331
		fi
349
# INTIF config (for bypass mode only)
332
# INTIF config (for bypass mode only)
350
		$SED "s?^IPADDR=.*?IPADDR=$PRIVATE_IP?" /etc/sysconfig/network-scripts/bypass-ifcfg-$INTIF
333
		$SED "s?^IPADDR=.*?IPADDR=$PRIVATE_IP?" /etc/sysconfig/network-scripts/bypass-ifcfg-$INTIF
351
		$SED "s?^NETMASK=.*?NETMASK=$PRIVATE_NETMASK?" /etc/sysconfig/network-scripts/bypass-ifcfg-$INTIF
334
		$SED "s?^NETMASK=.*?NETMASK=$PRIVATE_NETMASK?" /etc/sysconfig/network-scripts/bypass-ifcfg-$INTIF
352
# NTP server
335
# NTP server