Help !!! Static route between two router WRT160NL
Hi all,
I have my internet connection connect to my main Linksys router WRT160NL (192.168.1.1) with 192.168.1.x.
My 2nd Linksys router connect to the first one as Gateway as well.
The 2nd router has its WAN ip of 192.168.1.100 and it's local subnet as 192.168.2.x.
My machines at 192.168.2.x can get to the internet and connect to all machines in the 192.168.1.x network.
However, the 1.x network can't access the machines on the 2's network. And because of that, i can not sharing or printing between two network.
I try to add static routes on my main router (192.168.1.1) with the route: 192.168.2.0 mask 255.255.255.0 and defaute gateway 192.168.1.100
However, the route not work still.
anyway to make sure that the 1.x network able to access the 2.x network and from 2.x access 1.x for sharing files and printing.
thanks for your help!
Solved!
Go to Solution.
In gateway the router does NAT which makes the LAN side inaccessible from the WAN side unless you configure port forwarding or similar. If it wouldn't do so your 192.168.1 LAN would be accessible from the internet. Static routing won't change this.
You have to disable NAT (aka switch to router mode) on the second router. You have to set up a static route on the main router then. However, most likely your network 192.168.2.* won't have internet anymore because the main router will only do NAT for 192.168.1.* and not for 192.168.2.*.
Thus, if possible set up the second router as access point only and run a single LAN.
Similar Messages
-
[Urgent] Need help calculating difference between two dates
I'm trying to write a code to display the current day and time, then accept two dates from the user and display the difference between the two dates. To display the current date and time, I've used the SimpleDateFormatter library but I'm having difficulty calculating the difference between two dates. Could someone please help me with this?
Below is my code so far
import java.util.Date;
import java.util.Scanner;
import java.text.SimpleDateFormat;
public class DateFormatter {
public void displayNow()
Date todaysDate = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MMM-dd HH:mm:ss");
String formattedDate = formatter.format(todaysDate);
System.out.println("Today's date and time is: "+formattedDate);
public void calculateDifference(Date startDate, Date endDate)
/* This is whre i need help! */
public static void main(String[] args)
DateFormatter df = new DateFormatter();
Scanner sc = new Scanner(System.in);
df.displayNow();
System.out.println("Please enter a date: ");
String date1 = sc.next();
System.out.println("Please enter another date: ");
String date2 = sc.next();
}The methods displayNow() and calculateDifference(Date startDate, Date endDate) are essential and cannot be skipped out.tarahmarie101 wrote:
Dude. I've tried doing assignments under pressure, and it doesn't work. Here's a piece of free advice. Start earlier next time, don't put "urgent" in the title of your post b/c it just pisses people off around here--and is a sure sign of an overdue homework assignment which no one around here likes helping with, and try to ask intelligent questions--don't just say "Help me!"
Of course, it takes some time to learn what the intelligent questions are. You have my sympathy. Try asking questions about how to do a particular task, instead of asking people to tell you what to do. It starts to get easier after a while.
actually dude i started on this on monday.. but there were so many other stuff to do along with this.. and i did try referring up the Calendar utility but it was a bit confusing actually.. it was only after that did i come to this forum.. nor am i very good at Java.. anyhoo thanks for your sympathies :P -
Help with hours between two dates
Hi I need help with the below query
select count(*),a.col1,max(a.dt),min(a.dt)
from tab1 a
where a.dt > to_date('01-JUL-08','dd-mon-yyyy')
group by col1
having count(*) >=2
and (max(a.dt) - min(a.dt))* 24*60*60 > 360;
I am trying to pull the records with more than 2 entries, and having more than 6 hrs difference between max date and min date. When I am trying to execute this I am getting an error at "(max(a.dt) - min(a.dt))* 24*60*60 > 360".
any ideas how can I pull the records more than 6 hrs?
Thanks in advance!Sorry guys...here is the erros i am getting
ORA-00932: inconsistent datatypes: expected INTERVAL DAY TO SECOND got NUMBER
my version : 9.2
SQL>
SQL> @ver
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE 9.2.0.8.0 Production
TNS for Solaris: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
SQL>
SQL>
SQL> --
SQL> drop table tab1;
Table dropped.
SQL> create table tab1 as
2 select 'stin_8723646' as col1, to_date('7/22/2008 5:48:32 AM', 'mm/dd/yyyy hh:mi:ss AM') as dt from dual union all
3 select 'stin_8723646', to_date('7/22/2008 1:34:12 PM', 'mm/dd/yyyy hh:mi:ss AM') from dual union all
4 select 'stin_8723646', to_date('7/22/2008 3:16:25 PM', 'mm/dd/yyyy hh:mi:ss AM') from dual union all
5 select 'stin_8723647', to_date('7/22/2008 1:10:07 AM', 'mm/dd/yyyy hh:mi:ss AM') from dual union all
6 select 'stin_8723647', to_date('7/22/2008 4:19:00 AM', 'mm/dd/yyyy hh:mi:ss AM') from dual union all
7 select 'stin_8723647', to_date('7/22/2008 9:52:44 AM', 'mm/dd/yyyy hh:mi:ss AM') from dual;
Table created.
SQL>
SQL> alter session set nls_date_format = 'mm/dd/yyyy hh:mi:ss am';
Session altered.
SQL>
SQL> select * from tab1;
COL1 DT
stin_8723646 07/22/2008 05:48:32 am
stin_8723646 07/22/2008 01:34:12 pm
stin_8723646 07/22/2008 03:16:25 pm
stin_8723647 07/22/2008 01:10:07 am
stin_8723647 07/22/2008 04:19:00 am
stin_8723647 07/22/2008 09:52:44 am
6 rows selected.
SQL>
SQL> --
SQL> select
2 count(*),
3 a.col1,
4 max(a.dt),
5 min(a.dt)
6 from tab1 a
7 where a.dt > to_date('01-JUL-08','dd-mon-yyyy')
8 group by col1
9 having count(*) >=2
10 --and (max(a.dt) - min(a.dt))* 24*60*60 > 360
11 and (max(a.dt) - min(a.dt))* 24 > 6;
COUNT(*) COL1 MAX(A.DT) MIN(A.DT)
3 stin_8723646 07/22/2008 03:16:25 pm 07/22/2008 05:48:32 am
3 stin_8723647 07/22/2008 09:52:44 am 07/22/2008 01:10:07 am
SQL>
SQL>isotope -
Help in connecting between two frames using button click
hi all
am a student doing my final year project work. i would like to know how to redirect from frame to frame. like in the button click i should get redirected to a new frame. please help........
Message was edited by:
jayalekshmy.rthanks for the reply. in sockets the previous frame wil be there after redirection. i dont want tht frame to be there. i only want the new frame to be displayed after redirection. how can i do the same so. plaese help
-
How do I share my iTunes music folder between two macs?
I am running an iMac and a Mac mini on a home network. I want to have both macs use the same music folder, so that I can rip, burn, update, and synch from either computer. My music folder is located on my Mac mini in the usual location.
I went to preferences/advanced on my iMac and changed the location of the music folder to point it to the folder on the mac mini. It then said it was updating the library. I still can't see all of the music that is my folder on the mini, from the iMac.
What am I doing wrong?No, it's simpler, epecially if iTunes manages your music for you (default).
iTunes: How to move your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
do not confuse moving your whole folder and library with moving just media files as in
iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/HT1449
Quick answer if you let iTunes manage your music: Copy the whole iTunes folder and all its subfolders and files intact to the other drive. Start iTunes with the option key held down and guide it to the new location of the library.
I'm not sure abot your model Mac but you might be able to do this with the computer in Firewire Target Disk Mode.
How to use FireWire target disk mode - http://support.apple.com/kb/HT1661 - includes description of hardware and software requirements.
Target Disk Mode - Mac OS X 10.6 Help: Transferring files between two computers using FireWire - http://docs.info.apple.com/article.html?path=Mac/10.6/en/8443.html -
Hi All
Is it possible in IOS to have for a particular subnet:
a) Two static routes?
b) Make one static route a higher priority than the other?
c) If one static router "goes down", failover to the lower priority static route?
We have a l2tp/vpdn connection to a supplier which can be accessed via two vlans/routes. I would like to make one route the preferred one but the "route" to failover if the preferred route goes down.
Again, many thanks in advance for all responses!
Thanks
JohnHi John,
Hope the below explaination will help you...
R1(config)# ip route 0.0.0.0 0.0.0.0 2.2.2.2
R1(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.3 10
If you notice the Administrative Distance for the secondary route pointing to ISP2 is increased to 10 so that it becomes the backup link.
The above configuration with just two floating static routes partially accomplishes our requirement as it will work only in the scenario where the routers interfaces connected to the WAN link are in up/down or down/down status. But in a lot of situations we see that even though the links remain up but we are not able to reach the gateway, this usually happens when the issue is at the ISP side.
In such scenarios, IP SLAs becomes an engineer's best friend. With around six additional IOS commands we can have a more reliable automatic failover environment.
Using IP SLA the Cisco IOS gets the ability to use Internet Control Message Protocol (ICMP) pings to identify when a WAN link goes down at the remote end and hence allows the initiation of a backup connection from an alternative port. The Reliable Static Routing Backup using Object Tracking feature can ensure reliable backup in the case of several catastrophic events, such as Internet circuit failure or peer device failure.
IP SLA is configured to ping a target, such as a publicly routable IP address or a target inside the corporate network or your next-hop IP on the ISP's router. The pings are routed from the primary interface only. Following a sample configuration of IP SLA to generate icmp ping targeted at the ISP1s next-hop IP.
R1(config)# ip sla 1
R1(config)# icmp-echo 2.2.2.2 source-interface FastEthernet0/0
R1(config)# timeout 1000
R1(config)# threshold 2
R1(config)# frequency 3
R1(config)# ip sla schedule 1 life forever start-time now
The above configuration defines and starts an IP SLA probe.
The ICMP Echo probe sends an ICMP Echo packet to next-hop IP 2.2.2.2 every 3 seconds, as defined by the “frequency” parameter.
Timeout sets the amount of time (in milliseconds) for which the Cisco IOS IP SLAs operation waits for a response from its request packet.
Threshold sets the rising threshold that generates a reaction event and stores history information for the Cisco IOS IP SLAs operation.
After defining the IP SLA operation our next step is to define an object that tracks the SLA probe. This can be accomplished by using the IOS Track Object as shown below:
R1(config)# track 1 ip sla 1 reachability
The above command will track the state of the IP SLA operation. If there are no ping responses from the next-hop IP the track will go down and it will come up when the ip sla operation starts receiving ping response.
To verify the track status use the use the “show track” command as shown below:
R1# show track
Track 1
IP SLA 1 reachability
Reachability is Down
1 change, last change 00:03:19
Latest operation return code: Unknown
The above output shows that the track status is down. Every IP SLAs operation maintains an operation return-code value. This return code is interpreted by the tracking process. The return code may return OK, OverThreshold, and several other return codes.
Different operations may have different return-code values, so only values common to all operation types are used. The below table shows the track states as per the IP SLA return code.
Tracking
Return Code
Track State
Reachability
OK or over threshold
(all other return codes)
Up
Down
The Last step in the IP SLA Reliable Static Route configuration is to add the “track” statement to the default routes pointing to the ISP routers as shown below:
R1(config)# ip route 0.0.0.0 0.0.0.0 2.2.2.2 track 1
R1(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.3 10
The track number keyword and argument combination specifies that the static route will be installed only if the state of the configured track object is up. Hence if the track status is down the secondary route will be used to forward all the traffic.
Please rate the helpfull posts.
Regards,
Naidu. -
Hello.
I have wi-fi bridge between two routers TP-LINK WR841ND.
The name of this technology - WDS.
HP Laser JET 1536 dnf MFP connect to one of this routers (copper).
Second device (my NETBOOK) connect to second router (WiFi).
I have good communication between NETBOOK and HP Laser JET 1536 dnf MFP via WiFI-bridge.
In usual case NETBOOK can find (and can Ping) network printer and make a print some files.
But my Ipad or Iphone can't find HP Laser JET 1536 dnf MFP (using Eprint). Ipad and iphone connect
to router across WiFi.
Please, help!Are you using the ePrint Mobile App, the ePrint Printer Control App, or just trying to send an email to the printer's ePrint email address?
Does AirPrint work?
-------------How do I give Kudos? | How do I mark a post as Solved? -------------------------------------------------------- -
How e-mail is routed between two servers
Hi ,
Please anybody tell me how e-mail is routed between two servers , from the software point of view as well as hardware point of view .
And how Java mail API related to that .
Thanks,
KizIf you're looking for a simple answer there isn't one. Here's a place to start.
http://community.roxen.com/developers/idocs/rfc/rfc974.html -
Need Help for configuring Floating static route in My ASA.
Hi All,
I need your support for doing a floating static route in My ASA.
I have tried this last time but i was not able to make it. But this time i have to Finish it.
Please find our network Diagram and configuration of ASA
route outside 0.0.0.0 0.0.0.0 6.6.6.6 1 track 1
route outside 0.0.0.0 0.0.0.0 6.6.6.6 1
route rOutside 0.0.0.0 0.0.0.0 3.3.3.3 10
route inside 10.10.4.0 255.255.255.0 10.10.3.1 1
route inside 10.10.8.0 255.255.255.0 10.10.3.1 1
route inside 10.10.9.0 255.255.255.0 10.10.3.1 1
route inside 10.10.15.0 255.255.255.0 10.10.3.1 1
route rOutside x.x.x.x 255.255.255.255 5.5.5.5 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 10.10.3.77 255.255.255.255 inside
http 10.10.8.157 255.255.255.255 inside
http 10.10.3.59 255.255.255.255 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
sla monitor 123
type echo protocol ipIcmpEcho 8.8.8.8 interface outside
num-packets 3
frequency 10
sla monitor schedule 123 life forever start-time now
crypto ipsec transform-set cpa esp-3des esp-md5-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto map vpn_cpa 1 match address acl_cpavpn
crypto map vpn_cpa 1 set peer a.a.a.a
crypto map vpn_cpa 1 set transform-set abc
crypto map vpn_cpa 1 set security-association lifetime seconds 3600
crypto map vpn_cpa interface outside
crypto isakmp identity address
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash md5
group 2
lifetime 86400
crypto isakmp policy 65535
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
track 1 rtr 123 reachability
telnet 10.10.3.77 255.255.255.255 inside
telnet 10.10.8.157 255.255.255.255 inside
telnet 10.10.3.61 255.255.255.255 inside
telnet timeout 500
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics port
threat-detection statistics protocol
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ntp server 10.10.3.14
webvpn
tunnel-group .a.a.a.a ipsec-attributes
pre-shared-key *
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
service-policy global_policy global
smtp-server 10.10.5.11
prompt hostname context
Cryptochecksum:eea6e7b6efe5d1a180439658c3912942
: end
i think half of the configuration stil there in the ASA.
Diagram.
Thanks
RoopeshYou have missed the last command in your configuration, Please check it again
route ISP1 0.0.0.0 0.0.0.0 6.6.6.6 track 1
route ISP2 0.0.0.0 0.0.0.0 3.3.3.3
sla monitor 10
type echo protocol ipIcmpEcho 8.8.8.8 interface ISP1
num-packets 3
frequency 10
sla monitor schedule 123 life forever start-time now
track 1 rtr 123 reachability
You can do NAT in same way, here the logical name of the interface will be different.
Share the result
Please rate any helpful posts. -
How to route traffic between two different interfaces
Hi,
I need to setup a routing between two different interfaces on a host.
Inferface ce1 : 192.168.120.12
Inteface ce2 : 192.168.110.50
Is it possible to add a route which enables the ce2 interface to catch packets from the ce1 interface ?
Regards,
ArminThe problem is a application which is only able to listen on one interface.
To fix this, I have to make all packages visible on one interface. -
RFC connection between two SAP systems (with SAP router)
Hi!
I would like to set up a RFC-connection from SAP Solution Manager to other SAP system.
The network connection between the servers is VPN.
How can I set up this RFC-connection, if my connection between two SAP systems looks as follows,
(I use the following SAP routers)?
my server --> customer
my server --> internal SAP Router server xy (10.101....) --> SAP Router customer 2 (10.1....) --> SAP System customer (134....)
Back-way
SAP Systeme customer --> SAP Router customer (134.1....) --> internal SAP router (212.6....) --> my server
How can I set up this RFC-connection, if my connection between two SAP systems looks as follows,
(I use the following SAP routers)?
something like:
/H/10.101..../S/sapdp99/H/10.1.4..../S/sapdp99/H/134...
Thank you very much!
regards
ThomSame answer as in the other forum where you cross posted....
-
Help with RV042 Static Routing
I just purchased an RV042 Dual WAN Router. Both WAN's are connected from different ISP's. I have a PBX phone server connected to this router and want all traffic to and from this phone server going out strictly on one WAN and all the computers and the rest of the traffic on the other WAN. If I understand correctly, this needs to be set up in static routes? If that's the case, how would I do that? If not, the question still stands. Please help.
Hello Vitaly,
What you are looking for is Protocol Binding. By setting this up you will be able to control what traffic goes out which WAN port. Protocol Binding can be done for certain traffic types or for certain IP addressess. -
I´m doing a design for presale, where I will need a router what support PAT for 500 or a little more of users, it not need any more features only static routing and dhcp pool for 500 users, can you help me for know what router recommend?
What is your WAN speed currently and projected WAN speed in the next 3 years?
-
After having inserted my own router as the internet gateway router and relegated the Verizon one to be a secondary one that just communicates with the STBs I would like to know if any could explain to me how to set up static routes to be able to access it via a wired connection as I would like to turn of the wireless side of it.
Now have a double NAT'd setup as follows
ONT -> WAN Netgear subnet 192.168.0
Netgear Lan port 1 -> Wan VZ Westell subnet 192.168.1
Moca connections to STBs
Ethernet connections to exposed (Port forwarded) machines
Netgear Lan Port 2 -> Wan Dlink subnet 192.168.3
Dlink Lan port -> 1GB NIC desktop machine 192.168.3.99
From the desktop machine at 192.168.3.99 I want to be able to get to the admin pages of the VZ router at 192.168.1.1 and also to some exposed machines on the 192.168.1 subnet
I'm guessing I need static routes defined at the dlink router at 192.168.3.1 and the netgear router at 192.168.0.1
On paper this looks very simple but I cannot work out what the static routes are meant to say
Any have any hints that would help me out?Fixed it. once I looked at the Westell logs
Finally realized that the static routes I built were fine and the problem is that I was being blocked at the firewall.
Can't put the router in the DMZ and can't port forward to the the router's lan ip address (192.168.1.1). Allowed remote admin on the router and it works fine - would be nice if the router allowed you to choose some obscure port but I guess it's not really much of a sexurity risk as the router's wan port is inside the private network anyway. -
Multiple instances of EIGRP or static routes
I'm building a network which needs to have All but one of it's private networks pass through a DMVPN, all the routes are advertised through EIGRP, that part works great!
I have a private VLAN that only has access onto the internet, the address is Nat'ed over to a public IP address. Each router, there's six of them, are neighbors to two other routers. The furthest router to the internet has to go through three routers to get to the internet. My current idea is to use static routes on all the routers to the Internet gateway router. Then let recursive routing sort out each hop. What I would rather do is have EIGRP do all that. I really don't want to mess with the EIGRP that's running for the DMVPN tunnels, I'd like to have another instance of EIGRP run on the routers that will route the users to the Internet.
Does anyone have any thoughts concerning this design.
Thanks.
MitchMitch
I am not clear about what you are attempting to achieve and not very clear about the topology. So my answer may or may not be on target. If it is not perhaps you can help us understand a little better what is involved.
I believe that what you are saying is that you have an existing network with multiple locations connected over DMVPN and that you run EIGRP as the routing protocol for that network. I believe you are also saying that there is one network segment which needs access to the Internet but should not be able to access the other parts of your network.
You say that the address of this other segment is NATed but are not clear whether the translation is ont the router where the segment is located or is on the Internet gateway router.
Probably the traditional solution for this would be to provide a default route for this segment pointing toward the Internet gateway router, to have a route on the Internet gateway router (and other routers along the path toward where the network is located), and a series of access lists on each router along the way which allows passage to the Internet and denies access to local resources.
I would propose a somewhat different solution. I believe that it would work if you configure a GRE tunnel between the router where the segment is located and the Internet Gateway router. On the router where the segment is located you could do Policy Based Routing to send traffic from the private segment to the Internet over the GRE tunnel (which effectively isolates it from your other resources). You might want Policy Based Routing on the Internet gateway router to be sure that traffic from the private segment was forwarded only to the Internet (though you might not need that). The Internet gateway router could have a route (probably a static route) which sends traffic to the private segment over the GRE tunnel.
Let us know what you think of this. And if it is off the mark perhaps you could clarify a bit.
HTH
Rick
Maybe you are looking for
-
HT204053 how to use an apple id for itunes i pad
i cant use my apple id when i enter it it says (uthis id not yet been used in i Tune store ...what should i do ?
-
I'm tearing my hair out over this. Solve this for me and I'll love you forever! :-) I have a shell script running on a Linux machine to generate multipart mail messages. These display perfectly in Thunderbird (PC or Mac) but the html is missing when
-
Can you help to open adobe flash cs6
Can you help to open adobe flash cs6
-
Is there a way to setup mail to ask for a password BEFORE! opening mail? I don't like the fact that anyone can open my mail if i'm away from my computer. Thanks
-
Freezing Ipod on Mac... really annoyed
Okay so i have an ipod... the ipod freezes whenever i connect to the computer... so i have to drain the battery.. and i cant update my ipod anymore b.c it freezes. Im not sure what to do.. if i reset my ipod to factory standards will i loose all my s