mike_111 pisze:
Witam ponownie
Linie ta
"ifconfig -a eth0:5 195.xxx.yyy.5 netmask 255.255.255.0 broadcast 195.xxx.yyy.255 " dodalem do pliku /etc/rc.d/rc.local
Nie do konca wiem co wklepac, mam dsl - 5 zew ip no i chcialbym sie upewnic jak poprawnie powino wygladac utworzenie takiej linii. Czy moze tak jak w ponizej zamieszczonych plikach?
W ktorej lini to wkleic? Dowolnie? czy moze najpierw jakies inne polecenia np arp -f ?
Prosze o ewentualne sprostowanie (Z tego co mi podali odnosnie dsl: 83.18.241.207 to adres rozgloszeniowy )
No i chyba cos spartolilem:
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:10:4B:58:A4:B7
inet addr:83.18.241.202 Bcast:83.18.241.207 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:535 errors:0 dropped:0 overruns:0 frame:0
TX packets:577 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:142202 (138.8 Kb) TX bytes:93428 (91.2 Kb)
Interrupt:5 Base address:0x220
eth0:1 Link encap:Ethernet HWaddr 00:10:4B:58:A4:B7
inet addr:83.18.241.203 Bcast:83.18.241.207 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x220
eth0:2 Link encap:Ethernet HWaddr 00:10:4B:58:A4:B7
inet addr:83.18.241.204 Bcast:83.18.241.207 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x220
eth0:3 Link encap:Ethernet HWaddr 00:10:4B:58:A4:B7
inet addr:83.18.241.205 Bcast:83.18.241.207 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x220
eth0:4 Link encap:Ethernet HWaddr 00:10:4B:58:A4:B7
inet addr:83.18.241.206 Bcast:83.18.241.207 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x220
eth1 Link encap:Ethernet HWaddr 00:C0:DF:0F:AE:7B
inet addr:10.10.10.254 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:605 errors:0 dropped:0 overruns:0 frame:0
TX packets:533 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:1000
RX bytes:96506 (94.2 Kb) TX bytes:141387 (138.0 Kb)
Interrupt:12 Base address:0xa000
rc.local
arp -f
ifconfig eth0:1 83.18.241.203 netmask 255.255.255.248 broadcast 83.18.241.207
ifconfig eth0:2 83.18.241.204 netmask 255.255.255.248 broadcast 83.18.241.207
ifconfig eth0:3 83.18.241.205 netmask 255.255.255.248 broadcast 83.18.241.207
ifconfig eth0:4 83.18.241.206 netmask 255.255.255.248 broadcast 83.18.241.207
firewall:
# Przekierowanie wewnetrznych IP na zewnetrzne
$i -A FORWARD -i eth0 -d 10.10.10.4 -j ACCEPT
$i -A POSTROUTING -t nat -s 10.10.10.4 -o eth0 -j SNAT --to 83.18.241.203
$i -A PREROUTING -t nat -d 83.18.241.203 -j DNAT --to 10.10.10.4
$i -A FORWARD -i eth0 -d 10.10.10.10 -j ACCEPT
$i -A POSTROUTING -t nat -s 10.10.10.10 -o eth0 -j SNAT --to 83.18.241.204
$i -A PREROUTING -t nat -d 83.18.241.204 -j DNAT --to 10.10.10.10
No i cos mi jednak nie chce dawac tego zewnetrznego ip - kompa mam 10.10.10.4 i ciagle mam ten sam ip co caly nat czyli 83.18.241.202

_________________
http://hutnet.no-ip.org/ NND - NaweNawetDobry Linux
120 dni - a moglo byc dluzej Nie lubie GZE