LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-20-2015, 12:29 AM   #1
otak
LQ Newbie
 
Registered: Feb 2015
Posts: 2

Rep: Reputation: Disabled
Configure Linux network using transport network


Hi all!

I have troubles in my network configuration and i cant solve them.
Help pls.


I have three network interfaces on HOST1:

eth0 - 172.16.1.1 local network

I added two virtual network interfaces to eth0.
eth0:1 111.111.111.111 external IP address (need send to HOST2)
eth0:2 192.168.1.2/30 Transport network with only two IP addresses


HOST2:

Will recieve external IP address (111.111.111.111) from HOST1.
Have transport network IP 192.168.1.1/30
I can send ICMP packets from 192.168.1.2 to 192.168.1.1 host2 is avaible in network


I configure NAT on HOST1 to send external address

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F
iptables -t nat -F
iptables -t mangle -F


iptables -t nat -A POSTROUTING -o eth0:1 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT
Added gateway on external network interface
Code:
route add -net 0.0.0.0 gw 192.168.1.1 dev eth0:1
I need connect from local network 172.16.1.0 through HOST1 (eth0 172.16.1.1) and send external IP (111.111.111.111) using transport network.
My NAT doesnt work with transport network and i dont understand how configure network in this situation

Last edited by otak; 02-20-2015 at 12:34 AM.
 
Old 02-21-2015, 02:26 AM   #2
otak
LQ Newbie
 
Registered: Feb 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
nobody can help with this configuration?((
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network driver not avaiable anywhere to configure network on hp pavilion dv6000 Nitin Bhumkar Linux - Laptop and Netbook 1 01-18-2007 08:50 PM
Configure DSL and Linux network Darrell22 Linux - Networking 1 06-19-2005 10:41 PM
how to configure my network on slackware 10.0 so i can access a windows network salviadud Linux - Newbie 2 02-11-2005 01:19 PM
How to configure two network cards on RH linux 8.0 latencywala Linux - Networking 0 10-10-2003 11:39 AM
How to configure a Network everywhere fast network card under Linux Mandrake 7.2 margo256 Linux - Newbie 1 03-12-2001 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration