It is currently Mon Nov 18, 2019 10:33 pm


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Reach Internet via Tap interfaces through two clouds
PostPosted: Tue Mar 29, 2011 12:55 pm 
Offline

Joined: Tue Mar 29, 2011 11:39 am
Posts: 5
Hi!

I'm trying to set up a way to reach internet via two clouds, please see attachment, (I have also tried this connecting both routers to the same cloud, and set up two tap interfaces on that cloud, same result)

I can only reach internet through one router though (10.10.10.1) (directly pinging from the router to internet) :(, I can reach the taps from both routers (20.20.20.1 and 10.10.10.1 but not internet from 20.20.20.2)
Please help, here's my conf.
Shouldn't this work since you're using Nat?

########
#For NAT#
########

sudo ifconfig tap0 10.10.10.1 netmask 255.255.255.0
sudo ifconfig tap1 20.20.20.1 netmask 255.255.255.0
sudo ifconfig tap0 up; sudo ifconfig tap1 up



sysctl net.inet.ip.fw.forwarding

sudo sysctl -w net.inet.ip.forwarding=1

sysctl net.inet.ip.fw.enable

sudo natd -alias_address 172.30.6.73 -interface en0 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss

sudo ipfw add divert natd ip from any to any via en0


#########################
#first 2801 (10.10.10.0)#
#########################


config t
hostname 2801Hovsjo
inter fa 0/0
Description *** Internet ***
no shu
speed 100
duplex full
ip address 10.10.10.2 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 10.10.10.1

##########################
#second 2801 (20.20.20.0)#
##########################


config t
hostname 2801Forskarg.
inter fa 0/0
Description *** Internet ***
no shu
speed 100
duplex full
ip address 20.20.20.2 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 20.20.20.1




Attachments:
Skärmavbild 2011-03-29 kl. 14.41.43.png
Skärmavbild 2011-03-29 kl. 14.41.43.png [ 19.06 KiB | Viewed 1757 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO