Quantcast
Viewing all articles
Browse latest Browse all 20028

Edgerouter x-sfp and vlan tagging

Hi All,

 

New user of Ubnt-equipment here. I've got little experience with routers and switches outside of the consumer arena.

Now I've got a Edgerouter X sfp, and I'm trying to make it the only box I need.

 

I'm replacing an Inteno switch that whas uset for fiber tranciever and VLAN splitting.

I want to use the Edgerouter as the fiber tranciever as well as one of the LAN ports for the IPTV.

 

I've gotten so far as to set everything up that has to do with the internet connection, ddns and ap's, but the IPTV still eludes me.

 

Swedish ISP Telia has vid.845 for IPTV, and internet is untagged. I've created a VLAN-Interface at eth5.845, and in the switch0-port, I've made eth4 VLAN aware with vid.845.

This still does not work. The STB receives an ip-address from Telia, but stops and complains that it cannot get multicast.

Not sure how to solve this..

 

Config:

 

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 enable                                                         
    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 {                                                             
        description Local                                                       
        duplex auto                                                             
        speed auto                                                              
    }                                                                           
    ethernet eth1 {                                                             
        description Local                                                       
        duplex auto                                                             
        speed auto                                                              
    }                                                                           
    ethernet eth2 {                                                             
        description Local                                                       
        duplex auto                                                             
        speed auto                                                              
    }                                                                           
    ethernet eth3 {                                                             
        description Local                                                       
        duplex auto                                                             
        poe {                                                                   
            output 24v
        }                                                                       
        speed auto                                                              
    }                                                                           
    ethernet eth4 {                                                             
        description Local                                                       
        duplex auto                                                             
        speed auto                                                              
    }                                                                           
    ethernet eth5 {                                                             
        address dhcp                                                            
        description Internet                                                    
        duplex auto                                                             
        firewall {                                                              
            in {                                                                
                name WAN_IN                                                     
            }                                                                   
            local {                                                             
                name WAN_LOCAL                                                  
            }                                                                   
        }                                                                       
        speed auto                                                              
        vif 845 {                                                               
            mtu 1500
        }                                                                       
    }                                                                           
    loopback lo {                                                               
    }                                                                           
    switch switch0 {                                                            
        address 192.168.0.1/24                                                  
        description Local                                                       
        switch-port {                                                           
            interface eth0 {                                                    
            }                                                                   
            interface eth1 {                                                    
            }                                                                   
            interface eth2 {                                                    
            }                                                                   
            interface eth3 {                                                    
            }                                                                   
            interface eth4 {                                                    
                vlan {                                                          
                    vid 845                                                     
                }                                                               
            }                                                                   
            vlan-aware enable                                                   
        }
    }                                                                           
}                                                                               
port-forward {                                                                  
    auto-firewall enable                                                        
    hairpin-nat enable                                                          
    lan-interface eth0                                                          
    lan-interface eth1                                                          
    lan-interface eth2                                                          
    lan-interface eth3                                                          
    rule 1 {                                                                    
        description TS3                                                         
        forward-to {                                                            
            address 192.168.0.105                                               
            port 10011                                                          
        }                                                                       
        original-port 10011                                                     
        protocol tcp                                                            
    }                                                                           
    rule 2 {                                                                    
        description TS3                                                         
        forward-to {                                                            
            address 192.168.0.105                                               
            port 30033
        }                                                                       
        original-port 30033                                                     
        protocol tcp                                                            
    }                                                                           
    rule 3 {                                                                    
        description TS3                                                         
        forward-to {                                                            
            address 192.168.0.105                                               
            port 9987                                                           
        }                                                                       
        original-port 9987                                                      
        protocol udp                                                            
    }                                                                           
    wan-interface eth5                                                          
}                                                                               
protocols {                                                                     
    igmp-proxy {                                                                
        interface eth5.845 {                                                    
            alt-subnet 0.0.0.0/0                                                
            role upstream                                                       
            threshold 1                                                         
        }                                                                       
        interface switch0 {
            alt-subnet 0.0.0.0/0                                                
        }                                                                       
    }                                                                           
}                                                                               
service {                                                                       
    dhcp-server {                                                               
        disabled false                                                          
        hostfile-update disable                                                 
        shared-network-name LAN {                                               
            authoritative enable                                                
            subnet 192.168.0.0/24 {                                             
                default-router 192.168.0.1                                      
                dns-server 192.168.0.1                                          
                lease 86400                                                     
                start 192.168.0.50 {                                            
                    stop 192.168.0.243                                          
                }                                                               
                static-mapping Maxi-Me {                                        
                    ip-address 192.168.0.100                                    
                    mac-address 30:b5:c2:05:4f:79                               
                }                                                               
            }                                                                   
        }
    }                                                                           

Grateful for any help.

 

 

/M


Viewing all articles
Browse latest Browse all 20028

Trending Articles