Community discussions

 
eapache
just joined
Topic Author
Posts: 1
Joined: Mon Jul 20, 2009 6:08 pm

Setting up an invisible host

Mon Jul 20, 2009 6:49 pm

As per the instructions on the wiki (http://wiki.mikrotik.com/wiki/Metarouter) I managed to get OpenWRT trunk up and running as a metarouter on an RB450g.

In my eventual setup, I want the host RouterOS to be basically invisible. Anything plugged in sees a router running OpenWRT, and the metarouter handles all traffic.

If I understand correctly, I need to create five virtual interfaces (vif1 to vif5), and five bridges (bridge1 to bridge5). Then, I need to bridge each real interface to each virtual interface (vif1-bridge1-ether1 etc...)

My virtual interfaces:
[admin@MikroTik] /metarouter interface> print                                   
Flags: X - disabled, A - active                                                 
 #   VIRTUAL-MACHINE         TYPE    STATIC-INTERFACE         VM-MAC-ADDRESS    
 0 A OpenWRT                 dynamic                          02:16:06:4F:9A:77 
 1 A OpenWRT                 dynamic                          02:0B:3E:55:A6:23 
 2 A OpenWRT                 dynamic                          02:44:FF:4A:94:9A 
 3 A OpenWRT                 dynamic                          02:9B:5A:38:F1:01 
 4 A OpenWRT                 dynamic                          02:AE:9B:0C:F8:30 
My bridges:
[admin@MikroTik] /interface bridge port> print                                  
Flags: X - disabled, I - inactive, D - dynamic                                  
 #    INTERFACE              BRIDGE              PRIORITY PATH-COST  HORIZON    
 0 I  ether1-gateway         bridge1             0x80     10         none       
 1    vif1                   bridge1             0x80     10         none       
 2    ether2-local           bridge2             0x80     10         none       
 3    vif2                   bridge2             0x80     10         none       
 4 I  ether3-local           bridge3             0x80     10         none       
 5    vif3                   bridge3             0x80     10         none       
 6 I  ether4-local           bridge4             0x80     10         none       
 7    vif4                   bridge4             0x80     10         none       
 8 I  ether5-local           bridge5             0x80     10         none       
 9    vif5                   bridge5             0x80     10         none       
The problem is that OpenWRT only sees one of the virtual interfaces. Interestingly enough (according to the MAC address), it sees the second one I added, not the first:
root@OpenWrt:/# ifconfig                                                        
br-lan    Link encap:Ethernet  HWaddr 02:0B:3E:55:A6:23                         
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0        
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:0                                             
          RX bytes:696 (696.0 B)  TX bytes:403 (403.0 B)                        
                                                                                
eth0      Link encap:Ethernet  HWaddr 02:0B:3E:55:A6:23                         
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:696 (696.0 B)  TX bytes:0 (0.0 B)                            
                                                                                
lo        Link encap:Local Loopback                                             
          inet addr:127.0.0.1  Mask:255.0.0.0                                   
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                              
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0                   
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0                 
          collisions:0 txqueuelen:0                                             
          RX bytes:996 (996.0 B)  TX bytes:996 (996.0 B)    
I'm not sure where to go from here, but any help is greatly appreciated.

Who is online

Users browsing this forum: No registered users and 3 guests