Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: malko help za routing


  • Subject: Re: lug-bg: malko help za routing
  • From: gf@xxxxxxxxxx (Georgi Chorbadzhiyski)
  • Date: Wed, 21 Jun 2000 12:25:56 +0300



gggg ggg wrote:

> zdraveite,
> imam slednia problem:
> edna mreja s okolo 10 komputera (game club)  mi e na
> LAN , no igrite ,koito igraiat w tozi klub hwurliat
> jaki kolizii,reshih da gi ograni4a da ne stigat do men
> ,kato sloja oshte edna LAN karta i gi rutiram prez
> neia .

Na BNC mrezha si nali ?

>
> wsi4ko e OK ako tiahnata mreja ostane na private IP ot
> roda 192.168..., no loshoto e 4e triabwa da sa na
> realni,koito sa niakade v sredata na IP segmenta mi.
> mashinata koiato go igrae router ima dwe LAN karti
> edna obshta s moiata mreja i edna s tiahnata.ideiata e
> kak da opisha w route tablitzata na routera tazi
> situacia ? oshte: dwete LAN karti shte e neobhodimo da
> wzemat 2 realni IP adresa za da produlja natatuka s
> realni IP.

>
> probwah da dawam gateway za IPs,koito otiwat w game
> kluba edno ot IP-tata na niakoia ot kartite na rouera
> , no ne stana . Triabwa li da se opiswat wsi4ki adresi
> koito otiwat w kluba edin po edin koi im e gateway i
> na wsiaka mashina ot moiata mreja li triabwa da stane
> towa?
>

Neshto nemozhah da razbera iskash i dvetete mrezhi da
sa s relani IP-ta, rutera ti ima dve mrezhovi karti, a wryzkata
kam internet kakva ti e ? (ppp??) Ako predpolozhim che imash
ppp wrazk kam inet mozhe da izpolzvcash nestho takova

----- script start ----
#!/bin/sh
#
# /etc/rc.d/rc.inet1 (slack7) slightly modified by _GF_
#

echo "Configuring lo interface...."
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

IPADDR="212.124.68.2"                # Tova ti e tvoita mrezhova karta
NETMASK="255.255.255.240"    # 16 mashini
NETWORK="212.124.68.0"
BROADCAST="212.124.68.15"

IPADDR1="212.124.68.17"            # Tova ti kartata kam game club-a
NETMASK1="255.255.255.240"    # 16 mashini
NETWORK1="212.124.68.16"
BROADCAST1="212.124.68.31"

echo "Configuring eth0 as ${IPADDR}..."
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

echo "Configuring eth1 as ${IPADDR1}..."
/sbin/ifconfig eth1 ${IPADDR1} broadcast ${BROADCAST1} netmask ${NETMASK1}
----- script start ----

Ako izpolzvash ppp i tovia provider ti dava adres primer 212.124.68.1
to ppp-to priconecia shte dobavi waw routing-a

/sbin/route add default gw 212.124.68.1 netmask 0.0.0.0

A ppp device shte e s IP  212.124.68.1

Na mashinite w tvoia club gateway-a triabva da im e IP-to na parvata mrezhova
karta.
Na mashinite w game-club-a gateway-a triabva da im e IP-to na wtorata mrezhova
karta.

Po tozi nachin i dvete mrezhi sa s realni IP-ta, wizhdat se edna druga i dvete
ima wrazka
s internet.

Ako iskash IP-tata na game club-a da sa po-sredata na tvoite IP-ta toest ti
imash
212.124.68.1/24

iskash game club-a da e 212.124.68.16/28

mislia che triabva da slozhish na parvata mrezhova karta oshte edno ip


--

Georgi Chorbadzhiyski
System Administrator
Cybercom Ltd.
http://www.cybcom.net/

==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.