Community discussions

MikroTik App
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Basic Setup Issues

Thu Nov 12, 2009 8:46 am

Hello my name is Bryan. I am trying to configure an old Dell into a Mikrotik Router using RouterOS. I have the proper ethernet cards and everything is detecting. What my objective is, is to come into one port (ether1) with internet (static IP) and to go out to a switch with the other port (ether2). Yet I seem to be having more trouble than I asked for, trying to ping the gateway..

---- Layout ---
___________
|          |+(Ether1) <---- Internet IN (Static IP)
| RouterOS |
|__________|+(Ether2) -----> Out to Laptop (Static IP) (For Testing I eliminated the switch)
Ether1 = 10.0.0.1/32
Ether2 = 192.168.1.1/24
Gateway = 192.168.1.1
----------------

Laptop - No Firewall enabled, and TCP/IP is set up properly.
RouterOS - Seems to be set up properly, I can see the MAC of the Laptop when I do a tool> ip-scan

I also tried a cross-over cable just to see if that was what I was missing however it still failed to ping on either side (Laptop, or RouterOS)

I am tapped and there doesn't seem to be any great tutorials for this setup. Does anyone have any pearls of wisdom?

Thank you!
 
thermant
Frequent Visitor
Frequent Visitor
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Re: Basic Setup Issues

Thu Nov 12, 2009 10:09 am

Hi Bryan,

OK, first things first: By "pinging the gateway", you do mean your internet gateway, yes?

And second, from what I see, you have the same IP address for your ether2 and your gateway. :) You need to change the address of your gateway to the one given to you by your ISP.

Here's what I would try to do:
Open a terminal in winbox, then type "setup". It will then guide you through the initial setup of your router, including addresses, gateways, etc. Just continue from there.

Try that first, and we'll see how it goes.

Cheers,

-Z-

edit: Oh, if that fails, try posting the IP addresses of all your NICs (type /ip address print)
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 10:30 am

Hey Thanks,

I am trying to ping the gateway of the local network.. We can actually take the "internet out of the scenario"


___________
|          |+(Ether1) |----| (Nothing hooked up)
| RouterOS |
|__________|+(Ether2) -----> Out to Laptop (Static IP) (For Testing I eliminated the switch)
I cannot access my router's page to download winbox.exe at this point.
/ip address print - Results

ADDRESS          NETWORK        BROADCAST        INTERFACE
192.168.1.1/24   192.168.1.0    192.168.1.255    ether2
/ip route print - Results

# DST-ADDRESS     PREF-SRC     GATEWAY        DISTANCE
0 0.0.0.0/0                    192.168.1.1    1
1 192.168.1.0/24  192.168.1.1  ether2         0

The Laptop is hooked with a straight-through ethernet cable and setup as
IP ADDRESS:      192.168.1.3
SUBNET MASK:     255.255.255.0
GATEWAY:         192.168.1.1
The problem is that I cannot access it within terminal, IE, Firefox, or ping from CMD.



Thanks again!
Last edited by Kozical on Thu Nov 12, 2009 11:45 am, edited 2 times in total.
 
kaz911
newbie
Posts: 28
Joined: Wed Nov 11, 2009 4:31 pm

Re: Basic Setup Issues

Thu Nov 12, 2009 10:38 am

seems like you have not given the external interface an ip address.

here is what mine looks like

Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 ;;; default configuration
192.168.25.1/24 192.168.25.0 192.168.25.255 ether2-local
1 xxx.xxx.245.x/30 xx.xx.245.0 xx.xxx.245.3 ether1-gateway
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Basic Setup Issues

Thu Nov 12, 2009 10:46 am

Your route is showing the incorrect interface. It appears you have the 192.168.1.1/24 assigned to ether2 in "ip address", but the "ip route" entry shows ether1 for that network.
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 11:35 am

Tim- Yeah I see what you mean Tim, I actually ended up typing that out in a hurry. I mistyped that.. it actually is on ether2.
Kaz- I am unsure what you're trying to say. It appears you dedicated a whole ether port to your gateway ip? or is that where your internet is incoming?
Last edited by Kozical on Thu Nov 12, 2009 11:40 am, edited 1 time in total.
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 11:40 am

Here is basically how I set up the router;

[admin@MikroTik] > setup
[admin@MikroTik] > a
[admin@MikroTik] > a
[admin@MikroTik] > ether2
[admin@MikroTik] > 192.168.1.1/24
[admin@MikroTik] > g
[admin@MikroTik] > 192.168.1.1
[admin@MikroTik] > x
[admin@MikroTik] > x
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 11:53 am

That is the simplest way to put it. I have not done a whole lot, its a fresh install with 4.2 and I have not changed anything except entered the above commands. If I am not mistaken, I should now be able to ping my local gateway on the laptop with no problems. Yet, the problem I am having is no matter how many times I revert or how many times I reinstall the OS it will not ping the Local Gateway (192.168.1.1).
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Basic Setup Issues

Thu Nov 12, 2009 11:57 am

Can you ping the laptop from the router?
/ping 192.168.1.3
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 12:01 pm

Negative, I receive "ping timeout" on both..

Laptop(192.168.1.3)->Router(192.168.1.1) = ping timeout

Router(192.168.1.1)->Laptop(192.168.1.3) = ping timeout
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Basic Setup Issues

Thu Nov 12, 2009 12:03 pm

Are you using the serial port to set up the router? If so, do a reset
/system reset

Then try just this
/ip address add address=192.168.1.1/24 interface=ether2

ADD: And you are certain you are plugged into ether2? Show me
/interface ethernet print
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 12:09 pm

I am not using serial. I am actually using a KVM switch, monitor, keyboard, mouse. The laptop is connected via ethernet (straight-through) to the ROS Box.

I tried what you said and to no avail it did not work.. The same result occurred as before with the ping timeouts.
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 12:14 pm

According to the traffic monitor i am using ether1 i plugged in the internet and watched traffic over ether1, and ether2 to verify the ports originally.
-

0 ether1 1500 enabled
1 ether2 1500 enabled
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Basic Setup Issues

Thu Nov 12, 2009 12:21 pm

Something is not right there. If ether1 is connected to your modem, it should look like this:
0 R ether1 1500 ...
1 R ether2 1500 ....

The 'R' indicates the port is running (device is connected to that port).
 
thermant
Frequent Visitor
Frequent Visitor
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Re: Basic Setup Issues

Thu Nov 12, 2009 12:23 pm

Gaahh!!!

I tried the same setup you have, and ping works both ways.

OK, let's do what surfertim says:
1. unplug ethernet cable from ether1
2. run /interface ethernet print
3. copy the whole thing here

-Z-

edit: Yeah, it should look something like this:
Flags: X - disabled, R - running, S - slave 
 #    NAME                                   MTU   MAC-ADDRESS       ARP       
 0 R  LOCAL                                  1500  00:11:22:33:44:55 enabled   
 1 R  PRIVATE                                1500  AA:BB:CC:DD:EE:FF enabled   
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Basic Setup Issues

Thu Nov 12, 2009 12:33 pm

I just saw the hardware is not RouterBoard. That means your ethernet cards probably have no crossover capability. See if you get a 'R' if you connect ether2 to a hub or switch.
 
Kozical
just joined
Topic Author
Posts: 15
Joined: Thu Nov 12, 2009 8:03 am

Re: Basic Setup Issues

Thu Nov 12, 2009 12:36 pm

I found the problem guys.. Thank you for all your help!!

---

I feel like a dummy.. and I'm sure a few people will probably say I am. I made the note of what ether ports where which originally, and I guess I either notated it wrong or they changed upon reinstall. I did a ping -t and unplugged ether2 and plugged into ether1 and it worked so apparently somewhere during this fiasco I mislabeled the cards. I have been trying to get this thing to work for three days and never thought twice about it.. LOL

Thank you for helping me resolve this issue. You've not only made me a lot happier but about 137 other Soldiers..

--

I actually am trying to limit bandwidth across our network so everyone gets a fair share. I hope it all works out from here!

Thanks again, and have a Great Day!
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Basic Setup Issues

Thu Nov 12, 2009 1:06 pm

... and I guess I either notated it wrong or they changed upon reinstall. I did a ping -t and unplugged ether2 and plugged into ether1 and it worked so apparently somewhere during this fiasco I mislabeled the cards. I have been trying to get this thing to work for three days and never thought twice about it.. LOL
If you think you are the first person to do that, think again. You are not even the first person involved in this conversation to do that. That is how I knew to ask that question.
 
thermant
Frequent Visitor
Frequent Visitor
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Re: Basic Setup Issues

Thu Nov 12, 2009 1:38 pm

@Tim: Yes, yes, I know you're looking at me. Guilty as charged.

Anyhoo... Good thing it all worked out for ya, Brian.

Cheers.

-Z-
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Basic Setup Issues

Thu Nov 12, 2009 1:42 pm

@Tim: Yes, yes, I know you're looking at me. Guilty as charged.
Hey thermant! Actually, I was looking in the mirror! :wink:

Who is online

Users browsing this forum: No registered users and 19 guests