Kernel 2.2.5 a dve routy

Igor Bujna bujna na tcioptics.cz
Pondělí Duben 19 15:08:00 CEST 1999


Zkusit tohle:
/sbin/ifup: 
ifconfig ${DEVICE} ${MACADDR:+hw ether 
$MACADDR}  ${IPADDR} \
 netmask ${NETMASK} broadcast 
${BROADCAST}
 # stupid hack, but should work...
 #-------------------------------------
------------- -
 # tady je uprava pro jadro 2.2.x dle 
konference:
 # if [ "$ISALIAS" = no ] && [ ! -f  
"/proc/sys/kernel/modprobe" ]; then
 # route add -net ${NETWORK} netmask 
${NETMASK}  ${DEVICE}
 # else
 route add -host ${IPADDR} ${DEVICE}
 # fi
 #-------------------------------------
------------- -
 # this is broken! it's only here for 
compatibility  with old RH systems
 if [ "${GATEWAY}" != "" -a 
"${GATEWAY}" != "none"  ]; then
 route add default gw ${GATEWAY} 
metric 1 ${DEVICE}
 fi 
Me to pomohlo.
  
    With regards
                          Igor Bujna 
                              
    Meopta-optika, a.s.
    member of the TCI group
    E-mail: bujna na tcioptics.cz
    tel.: +420-641-24 2619 , 2621(answering machine)
    fax.: +420-641-206579


Další informace o konferenci Linux