Vice static routes

Jan Pechanec jp at devnull.cz
Wed Mar 3 17:00:32 CET 2004


On Wed, 3 Mar 2004, Aleš Kotmel wrote:

>Mam vice portovy ethernet router. Mam nakonfigurovane sitove karty a vse
>funguje korektne ale ted potrebuji pridat ctyri static routes na jine site.
>Pridal jsem všechny ctyri nasledujicim prikazem do rc.conf ale aktivuje se
>mi vzdy pouze posledni uvedena static route
>
>static_routes="A"
>route_A="-net ..."


	rc.network:

  # Set up any static routes.  This should be done before router discovery.
  #
  if [ -n "${static_routes}" ]; then
	  for i in ${static_routes}; do
		  eval route_args=\$route_${i}
		  route add ${route_args}
	  done
  fi

	tedy static_routes="A B C D"

	h.



>#
>static_routes="B"
>route_B="-net ..."
>#
>static_routes="C"
>route_C="-net ..."
>#
>static_routes="D"
>route_D="-net ..."
>
>Nevite v cem je problem  a kde mohu mit chybu ?
>
>
>Diky za napad
>
>
>-----------------------------------------------------
>
>Aleš Kotmel     mailto:kotmel at annexnet.cz
>
>Annex NET, s.r.o. http://www.annexnet.cz <http://www.annexnet.cz/>
>
>Jeremenkova 88 Tel.: +420 2 4446 7740
>
>140 00 Praha 4 Fax: +420 2 4446 7727
>
>-----------------------------------------------------
>
>
>

-- 
Jan Pechanec <jp (at) devnull (dot) cz>




More information about the Users-l mailing list