Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

EdgeRouter X dual WAN and 1 LAN with load balancing

$
0
0

Hi, 

I'm trying to convert the configuration of my router (which actually has 1 WAN - with a LTE router - and 2 LANs) to dual WAN (with the existing LTE router + another one with another carrier) and 1 LAN (which connects PCs and APs)

 

I tried out the load balance wizard but I cannot connect to the internet with the configuration which the wizard gave me.

 

Requirements are: 

LTE router 1: 10.10.100.101/24 (it works if I connect it to a computer)

LTE router 2: 10.10.200.201/24 

LAN: 10.10.0.0/24 

Router IP from LAN: 10.10.0.254

DHCP: 10.10.0.1 to 10.10.0.253 on LAN

 

Here is my configuration: 

 

ubnt@ubnt:~$ show configuration                                                   
firewall {                                                                        
    all-ping enable                                                               
    broadcast-ping disable                                                        
    ipv6-receive-redirects disable                                                
    ipv6-src-route disable                                                        
    ip-src-route disable                                                          
    log-martians disable                                                          
    modify balance {                                                              
        rule 1 {                                                                  
            action modify                                                         
            modify {                                                              
                lb-group G                                                        
            }                                                                     
        }                                                                         
    }                                                                             
    name WAN_IN {                                                                 
        default-action drop                                                       
        description "WAN to internal"                                             
        rule 10 {                                                                 
            action accept                                                         
            description "Allow established/related"                               
            state {                                                               
                established enable                                                
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        address dhcp
        description "Internet - WAN"
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        speed auto
    }
    ethernet eth1 {
        address dhcp
        description "Internet - WAN 2"
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        speed auto
    }
    ethernet eth2 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth3 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth4 {
        description Local
        duplex auto
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        address 10.10.0.254/24
        description Local
        firewall {
            in {
                modify balance
            }
        }
        switch-port {
            interface eth2
            interface eth3
            interface eth4
        }
    }
}
load-balance {
    group G {
        interface eth0 {
        }
        interface eth1 {
        }
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN {
            authoritative enable
            subnet 10.10.0.0/24 {
                default-router 10.10.0.254
                dns-server 8.8.8.8
                dns-server 8.8.4.4
                lease 86400
                start 10.10.0.1 {
                    stop 10.10.0.253
                }
            }
        }
    }
    dns {
        forwarding {
            cache-size 150
            listen-on switch0
        }
    }
    gui {
        https-port 443
    }
    nat {
        rule 5000 {
            description "masquerade for WAN"
            outbound-interface eth0
            type masquerade
        }
        rule 5002 {
            description "masquerade for WAN 2"
            outbound-interface eth1
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
}
system {
    conntrack {
        expect-table-size 4096
        hash-size 4096
        table-size 32768
        tcp {
            half-open-connections 512
            loose enable
            max-retrans 3
        }
    }
    host-name ubnt
    login {
        user ubnt {
            authentication {
                encrypted-password ****************
            }
            level admin
        }
    }
    ntp {
        server 0.ubnt.pool.ntp.org {
        }
        server 1.ubnt.pool.ntp.org {
        }
        server 2.ubnt.pool.ntp.org {
        }
        server 3.ubnt.pool.ntp.org {
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone UTC
}

And some additional info: 

 

ubnt@ubnt:~$ show load-balance status
Group G                                                                           
  interface   : eth0                                                              
  carrier     : down                                                              
  status      : inactive                                                          
  gateway     : unknown                                                           
  route table : 201                                                               
  weight      : 0                                                                 
  flows                                                                           
      WAN Out : 7                                                                 
      WAN In  : 0                                                                 
    Local Out : 0                                                                 
  interface   : eth1                                                              
  carrier     : up                                                                
  status      : inactive                                                          
  gateway     : unknown                                                           
  route table : 202                                                               
  weight      : 100                                                               
  flows                                                                           
      WAN Out : 156                                                               
      WAN In  : 0                                                                 
    Local Out : 32                                                                
ubnt@ubnt:~$ show load-balance watchdog
Group G                                                                           
  eth0                                                                            
  status: Waiting on recovery (0/3)                                               
  pings: 3                                                                        
  fails: 3                                                                        
  run fails: 3/3                                                                  
  route drops: 1                                                                  
  ping gateway: ping.ubnt.com - DOWN                                              
  last route drop   : Mon Nov  7 19:00:59 2016                                    
  eth1                                                                            
  status: Waiting on recovery (0/3)                                               
  pings: 3                                                                        
  fails: 3                                                                        
  run fails: 3/3                                                                  
  route drops: 1                                                                  
  ping gateway: ping.ubnt.com - DOWN                                              
  last route drop   : Mon Nov  7 19:00:58 2016                                    

Can you help me? Thank you very much

 

Andrea


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>