Jump to content

Recommended Posts

Posted

Есть Linux RH 8.0 машина двумя сетевыми картами подключенный двум сетям (сеть А eth0->192.168.2.0/24 и сеть B eth1->192.168.1.0/24). Прописал роутинг

route add -net 192.168.1.0 dev eth1

route add -net 192.168.2.0 dev eth0

Сами интерфейсы могу пинговать a из A в B нет.

Что еще надо прописать?????

  • 1 month later...
Posted

У меня Linux 7.2. Я его ставил с уже установелнными сетевыми картами и сразу прописывал все настройки. В route я оставил все по умолчанию. Но для маршрутизации в файл /etc/sysconfig/ipchains добавил всего одну строку:

-A forward -s 192.1.1.0/24 -d 0.0.0.0/0 -b -j MASQ

в твоем случае, естественно, IP подставь свой.

Если у тебя iptables то все примерно тоже самое, но как точно я не знаю.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...