Witam. Chcę na nnd postawić 2 x DSL 4 Mbit/s i podzielić to po usługach. Jedno na squid-www, a drugie na resztę. Najnowsze nnd i mam mały probłem. Wzoruję się tym postem
http://forum.freesco.pl/viewtopic.php?t ... sc&start=0, gdzieś w połowie jest wypowiedź kolegi o nicku "tasiorek". Skonfigurowałem net_confem, zmieniłem eth1 na eth2. Tworzę eth1 według wzoru:
#!/bin/sh
. /etc/rc.d/functions
case $1 in
start)
ifconfig `basename $0` 192.168.200.2 netmask 255.255.255.0 up
ip rule add prio 202 from 192.168.200.0/24 table DSL2
ip route add default via 192.168.200.1 dev eth1 table DSL2
ip rule add fwmark 64 table DSL2
ip route flush cache
wynik
;;
stop)
ifconfig `basename $0` down
wynik
;;
esac
eth1: 192.168.200.2/24, brama 192.168.200.1- DSL2
Teraz mam problem, jak to pozmieniać pod dsla
Dane DSLa
Ip: 83.4.96.235
Maska 255.255.255.248
Broadcast 83.4.96.239
Brama 83.4.96.233
Szczególnie interesuje mnie linijka: ip rule add prio 202 from 192.168.200.0/24 table DSL2