>

User Login

TipidPC.com is the largest online IT Community in the Philippines. Have something to sell or share? Sign up for an account now. It's absolutely free!

Forum Topic

Official Networking Thread (LAN Configuration, Internet Sharing, Routers, Switches, etc.)

  • @Blu3martini

    thanks sa suggestion now ko lang nalaman itong wireless bridge kung tama pagkakaintindi ko dito,
    dapat ang router mo meron syang AP mode para maka connect sya don sa primary or nearest router na may wifi.

    Ngayun isa pang problem, from wireless bridge na malapit sa pinto medyo malayo yung samsung smart TV, kung wired connection okay na sana, kaso ayaw na ngang maglatag ng wired.

    Gamit yung typical na usb wireless dongle gagana kaya ito sa samsung smart tv?
  • Hindi AP mode iba pa yun. Wireless Ethernet Bridge/Wireless Bridge mode.

    Basically parang wireless switch lang(if ever meron wireless switch).

    Ilagay mo na lang sa likod ng Smart TV mo para hindi ka na need ng mahabang cable.

    Eto diagram sample from internet.

    External Image
  • Gud PM mga experts. May hinala po ako sa kapitbahay namin na kumokonekta sa wifi namin.
    PLDT po yung router namin, yung basic lang. Napansin ko lang po yung wifi name niya lumalabas dun sa list ng wifi connection dito sa area namin tapos kapag dinisable(disable) ko yung wireless config ng router ko e bigla rin nawawala yung wifi name niya. On off ko po yung wifi ON Off din po siya, parang ganyan.. ilang beses ko na ginawa pero sumasakto e, kaya hinala ko lang po. Ang tanong ko po is paano ko mapreprevent yung unauthorized access sa router namin? wala rin po kasi option na pwede palitan yung Router password kasi pinaka basic itong router na binigay saamin. Marami pong salamat. sensya na po newbie sa ganitong bagay
  • up
  • ^ Hi marunong ka naman siguro kumalikot ng gui ni pldt thru browser dba? My password dun pwede mo siya palitan. And also panong basic router? Ano bang modem mo jan?
  • sir intelmothernature,

    opo mejo marunong naman. yung wifi password po is napapalitan ko, pero yung admin password ni router ay walang option na mapalitan. bale base po sa pag momonitor ko sa kapitbahay, pagka naka 'on' yung wifi ko - lumalabas yung wifi niya(kapitbahay). wait lang po magpost po ako screenshots
  • WIfi normal mode scenario: Visible wifi name ng kapitbahay
    External Image


    wifi disabled mode: wala na yung wifi name ng kapitbahay
    External Image


    ilang beses ko na disable/enable yung wifi ko at napansin ko ganyan lagi ang nangyayari..
    baka hinahack nila ang koneksyon namin? kasi yung connection namin bumagal na. or paranoid lang ako?

    any suggestions?z

    -- edited by boynjs on Mar 03 2015, 10:17 PM

    -- edited by boynjs on Mar 03 2015, 11:10 PM
  • @boynjs
    sa tingin ko paranoid lang kayo, kasi kapag napalitan mo na yung wifi password hindi na siya makakconnect sa wifi so bale wala kahit alam niya pa administrator password.

    meron diyan option sa router to list yung connected network devices, makikita mo dun pa lang.

    -- edited by frequenzy on Mar 03 2015, 11:36 PM
  • @Blu3martini
    Thanks sa diagram naintindihan ko na, kaylangan pala 2 router, need lang din ng konting research regarding wireless bridge.

    Eto pa check if tama yung gagawin ko.

    Since may network port sa tabi ng PC, maglalagay ako ng router AP mode para may wifi yung buong room.
    Yung 2nd router itatabi ko sa TV at naka bridge sya sa router don sa tabi ng PC. From their pwede na akong mag wired from 2nd router to TV dahil malapit lang.


    thanks
  • Mga sir help lang with configuration. We just got a wireless point-to-point network bridge to bridge our two offices together.
    Basically what I need is a way to have the two Internet connections share the load or fail over to the other connection.

    External Image


    I put them now in the same subnet (192.168.1.0/24).

    Office 1 has two routers/gateways (R1 and R2) both going to the same WAN (Globe.) R1's WAN and R2's WAN connects to the Globe Modem/Router's network (192.168.254.0/24).
    The reason Office 1 has two routers is because R1 forces OpenDNS to enforce website blocking while R2 acts as 'open.' This is done via DNSmasq DHCP in R1 where certain MAC addresses are given to make R2 the default gateway and DNS server; else, they get R1 which has OpenDNS.

    Office 2 has only 1 router connected to Sky Broadband on WAN. Computers from this network get R3 as the default gateway sana.

    All routers use DD-WRT.
    R1 is 192.168.1.1 and is the DHCP server serving .100 to .150
    R2 is 192.168.1.2
    R3 is 192.168.1.3

    I tried putting two gateways and multiple DNS servers in DNSmasq for the whitelisted MAC addresses and Windows gets them properly. Windows doesn't use the other gateway though.

    So now, my solution for alternating gateways is to change the gateway in DHCP and have the computers restart or their network interfaces restarted. May nagsabi sa net na pwede ko daw babaan lease time ko so that no restart is needed.


    Gusto ko sana ng seamless na solution. I tried having both R1 and R3 as DHCP servers serving different pools pero yung mga nasa Office 1 nakakakuha ng DHCP from Office 2's router and vice versa.

    Baka may iptables magic or protocol magic (e.g. RIP2) na pwede kong gawin. VRRP daw tawag dito sa Cisco routers but wala nito sa dd-wrt.
    Balita ko dapat RIP2 and BGP can do this so routers can choose another gateway to the internet if their WAN connection fails. Tried RIP2 Router mode but wala akong connection sa net -- I probably need to wait or do some routing tables thing for it to act as a gateway.

    Malapit nako sa solution na needed ko I think, but I can't seem to get the following command to work para ma route yung traffic from R1 to R3. May command ako that keeps on pinging the internet sa WAN and its supposed to put in a route to reroute and revert once successful na ulit yung ping.

    iptables -t mangle -I PREROUTING -s 192.168.1.0/24 -d ! 192.168.1.0/24 -j ROUTE --gw 192.168.1.3


    -- edited by biggyeyes on Mar 04 2015, 12:33 PM
  • ^ Hmmm...Dual WAN Router para solved na lahat?
  • Di pwede pards kasi the two Internet connections are two blocks away. Di daw pwede i lipat or else re-contract kami kay ISP. Plus ang mura nung static IP namin sa Office 2 baka mawala pa.

    Ang gusto ko sana is a way to tell your default gateway na gamitin ang isa pang gateway for internet and not just the WAN port. (Parang WAN thru LAN)

    Ang nasa isip ko kasi based on this <click here for link> na I keep pinging an online site thru WAN and then use ip/iptables to switch the default gateway to another router. Di ko matest ginagamit pa yung router

    ip route delete default
    ip route add default via $GATEWAY_IP dev $VLAN_DEV


    or

    iptables -t mangle -I PREROUTING -s 192.168.1.0/24 -d ! 192.168.1.0/24 -j ROUTE --gw 192.168.1.3


    the latter seems to drop packets when I tested it last night. Baka gumana yung una

    edit: di gumagana :( if ever I'll add R3 into R1/R2's WAN network so it can be another gateway sa WAN port -- baka gumana sa ip route. I'll give R1 and R2 static IPs to connect to globe router and disable Globe Router's DHCP. Then try ip route default again or change the static IPs to point to R3. Medyo messy sa network though.

    -- edited by biggyeyes on Mar 04 2015, 02:02 PM
  • @frequenzy ,, baka po napapasok parin via hacking? Nagtataka lang po ako talaga ganun talaga ang lagi nangyayari.. hehe.
  • Basically what I need is a way to have the two Internet connections share the load or fail over to the other connection.


    dual wan router or multi-wan router. may mura sa cdr k, tomato. may mura ding mikrotik 3k to 5k pesos, for better features. meron din sa ibang brands. yan siguro medyo simple solution for me.

    else, research and experiment on advanced routing and gateway metrics.

    -- edited by phdot_com on Mar 04 2015, 03:35 PM
  • woo this command is working pala. Something is wrong sa routing tables ng wireless bridge or main router kaya pala di lumulusot yung packets from R1 to R3
    But R1 can now failover to R2 via the following command! :D
    Ayusin ko nalang routing tables ko para pwede na R1 to R3 :D

    ip route delete default
    ip route add default via 192.168.1.2 dev br0


    Balitaan ko nalang kayo if ever. Pag aralan ko how to have multiple default gateways sa route with metrics (if its even possible).
    Gusto kasi naming i-minimize yung cost and appliances. I did dual WAN (failover) na dati with ddwrt (Smart bro days) but that was with one router lang so it should be possible :P

    -- edited by biggyeyes on Mar 04 2015, 04:34 PM
  • mga bossing nood sa networking...

    Ask ko lang paano ko magagawang ipag connect ung dalawang company? vpn ba? anong magandang gamitin na din,, thanks
  • dual wan router or multi-wan router. may mura sa cdr k, tomato. may mura ding mikrotik 3k to 5k pesos, for better features. meron din sa ibang brands. yan siguro medyo simple solution for me.

    else, research and experiment on advanced routing and gateway metrics.


    how much po yung sa cd-r king. yung tomato ba yun ang brand nya? may load balancer na po ba ito at dual wan with failover?

    i have 2 DSL connections po kasi (both PLDT DSL, 2mb and 3mb) yung nauna ko kasing 5 units pure internet and browsing only. then magdadagdag ako ng units for gaming. so i cant just put them on 1 DSL kasi maglalag ang sa gaming.

    so naisip ko kung mag dual WAN ako (kaso baka mahal) then load balancing na lang. not sure kung maglalag pa din yung sa gaming pag ganun.
    **another option ko is separate DSL connection na lang talaga sila para iwas lag, kaso ang problem ko naman is different network sila. paano ko mamonitor kapag 2 network sila? is there anyway to join the 2 DSLs in one network and manage them in a server PC? possible ba ito sa dalawang LAN card? thanks.
  • Also curious question po... i havent tried this yet coz ililipat ko pa ng wiring ang isa ko DSL.

    What happens if you connect 2 DSLs (via ethernet cable) into one switch-hub and to the client PCs?

    Sorry kung wierd question..hehe
  • Just made my redundant gateways/internet work automagically! WOOHOO

    Sana lang may way sa dd-wrt to ping an address thru a gateway para malaman ko if online na ulit yung original gateway without resorting to policies or routes :(

    @PCar
    We have multiple internet connections din in one network.
    You can use Tomato with load balancing or a dedicated server (ginawa ko dati on Windows to balance Smart Broken and PLDT DSL).

    Solution namin is thru DHCP (DNSMasq on DD WRT)
    Specific MAC Addresses are flagged (e.g. red)
    These MAC Addresses that are flagged are then given another gateway which hosts another internet connection or anything.
    DNSMasq options ko look like as follows

    #whitelisted devices
    dhcp-mac=red,xx:xx:xx:xx:xx:xx
    dhcp-mac=red,xx:xx:xx:xx:xx:xx
    dhcp-mac=red,xx:xx:xx:xx:xx:xx
    dhcp-mac=red,xx:xx:xx:xx:xx:xx

    #settings for whitelisted
    dhcp-option = net:red, option:router, 192.168.1.2
    dhcp-option = net:red, 6, 8.8.8.8

    #normal peeps not whitelisted
    #get 192.168.1.1 not shown in here (present in gui config)
    address=/facebook.com/12.34.45.78
    address=/apps.facebook.com/12.34.45.78
    address=/twitter.com/12.34.45.78
    address=/youtube.com/208.87.149.250
    no-resolv
    strict-order
    #OpenDNS Site Filtering
    server=208.67.222.222
    server=208.67.222.220


    -- edited by biggyeyes on Mar 05 2015, 06:37 PM
  • @PCar
    We have multiple internet connections din in one network.
    You can use Tomato with load balancing or a dedicated server (ginawa ko dati on Windows to balance Smart Broken and PLDT DSL).

    Solution namin is thru DHCP (DNSMasq on DD WRT)
    Specific MAC Addresses are flagged (e.g. red)
    These MAC Addresses that are flagged are then given another gateway which hosts another internet connection or anything.
    DNSMasq options ko look like as follows


    Thanks a lot sir. Yung Tomato, please cmiiw, ito yung firmware ng router, NOT the brand. And also, dapat dual WAN ang router. Tama po ba?

    Kung tama man po ako, what router can you suggest? Yung sa CD-R king po ba pwede na?hehe

    very surface level lang po ang alam ko sa networking e, pero matyaga naman ako. sana kayanin ko pag configure nito.
  • clay005 wrote:
    mga bossing noob sa networking...
    Ask ko lang paano ko magagawang ipag connect ung dalawang company? vpn ba? anong magandang gamitin na din,, thanks


    VPN ang tawag sa ganon. VIRTUAL PRIVATE NETWORK.

    Pcar wrote:
    how much po yung sa cd-r king. yung tomato ba yun ang brand nya? may load balancer na po ba ito at dual wan with failover? i have 2 DSL connections po kasi (both PLDT DSL, 2mb and 3mb) yung nauna ko kasing 5 units pure internet and browsing only. then magdadagdag ako ng units for gaming. so i cant just put them on 1 DSL kasi maglalag ang sa gaming.


    External Image


    so naisip ko kung mag dual WAN ako (kaso baka mahal) then load balancing na lang. not sure kung maglalag pa din yung sa gaming pag ganun.


    ano bang ibig sabihin mo sa Dual WAN at Load Balancing?

    **another option ko is separate DSL connection na lang talaga sila para iwas lag, kaso ang problem ko naman is different network sila.


    pwede pagsamahin yan dalawang linya ng DSL sa iisang MikroTik Router saka mo iseparate ang browsing port 80 at 443 para dadaan yun sa DSL1 at mga common gaming ports para dadaan sa DSL2

    paano ko mamonitor kapag 2 network sila?


    magigiging isa nalang ang network mo dahil naka "masquerade" na ang 2 DSL network (192.168.1.1 at 192.168.2.1) sa iisang 192.168.88.1, yung mga PC/clients ang network nila under na sa .88 subnet kaya ang mga IP address magiging (192.168.88.2, 192.168.88.3, 192.168.88.4, 192.168.88.5.... and so forth)

    What happens if you connect 2 DSLs (via ethernet cable) into one switch-hub and to the client PCs?


    pwede naman as long as magkaiba ang network ng DSL-1 at DSL-2, turn off lang ang DHCP server ng isa.

    Example:.
    DSL-1 IP (Gateway) 192.168.1.1
    DSL-2 IP (Gateway) 192.168.2.1

    saka baguhin sa client mo ang Gateway para dun dadaan ang PC-1 to PC-5, tapos PC-6 to PC-10.

    Yung sa CD-R king po ba pwede na? hehe very surface level lang po ang alam ko sa networking e, pero matyaga naman ako. sana kayanin ko pag configure nito.


    mag MikroTik RouterBoard kana lang madali lang naman matutunan since motivated ka naman. On top of that kailangan mo din ng Bandwidth Management. Paano mo iprioritize ang gaming ports at limitahan ang Browsing at Youtube connections. That's the keyword hindi lang porke Dual WAN or Load Balancing yun na.
  • guys pano mag set ng bandwith priority sa isang pc kung several pc's ang nakaconnect sa isang router? some lan some via wifi?
  • dawinsm wrote:
    mga sir baka may idea kayo.

    ganito kasi ang problem, yung isang room walang naka abang na wired connection at ayaw din pa kablihan pa.
    or baka may iba pa kayong solution. Ngayun isa pang problem, from wireless bridge na malapit sa pinto medyo malayo yung samsung smart TV, kung wired connection okay na sana, kaso ayaw na ngang maglatag ng wired.


    ito ma-recommenda ko POWERLINE Stable at mataas pa ang throughput compared sa unreliable solution na Wireless Bridge/WDS/Wireless Ethernet/Repeater/Extender.
    External Image


    in other words less hassle at sakit ng ulo saksak mo nalang then voila.

    ito ang video panoorin mo.
    https://www.youtube.com/watch?v=yuhyTsNvefM
  • RuZuCoE
    guys pano mag set ng bandwith priority sa isang pc kung several pc's ang nakaconnect sa isang router? some lan some via wifi?


    kuha ka ng MikroTik RouterBoard at magagawa mo yan sa Simple Queue
    External Image
  • Thanks a lot sir. Yung Tomato, please cmiiw, ito yung firmware ng router, NOT the brand. And also, dapat dual WAN ang router. Tama po ba?

    Kung tama man po ako, what router can you suggest? Yung sa CD-R king po ba pwede na?hehe

    very surface level lang po ang alam ko sa networking e, pero matyaga naman ako. sana kayanin ko pag configure nito.


    I know Tomato is the firmware, as dd wrt is also another 3rd party firmware which I use.
    Kung Dual-WAN na yung router, siyempre mas madali yun since more or less a little config nalang and the more technical stuff is hidden and done behind the scenes.
    We use two routers because one router needs to act as a filter for sites (bawal daw FB/YouTube sabi ng boss) and the second acts as an open gateway. The first router also limits its inbound and outbound speed to 3mbps/0.8mbps plus QoS priority on http, email, skype and bulk priority on torrents and videos while the second route isn't capped. The ISP's router (which is the modem) also uses QoS to prioritize the second router. (This is now na isa lang ISP namin but the same concept applies where you prioritize certain computers based on factors -- mine is MAC address to specify route plus QoS).

    For a more technical explanantion -- refer to my image above and look at the left/purple side of the network. Difference lang for you is to connect Router 1 to your 'bulk' ISP and Router 2 to your 'gaming' ISP.

    For an easier way to set it up without messing with DHCP settings too much (flagging certain MAC addresses to have another gateway/dns.)
    You can do the following basta marunong ka mag set ng static IP at least to individual computers. Yun lang di automatic like mine but ok naman if net cafe since you don't have random new computers suddenly connecting sa network.

    Router 1 should have the following:
    -- connected to ISP-bulk via WAN port.
    -- IP 192.168.1.1 netmask 255.255.255.0
    -- DHCP enabled. (Take note of the pool it uses e.g. 192.168.1.100 to 192.168.1.200)
    -- LAN port 1 connected to Router 2's LAN port 1 with one cable.
    -- LAN port 2 connected to your main switch. (Not needed, but will help minimize non-internet traffic from hitting your router)

    Router 2 should have the following:
    -- connected to ISP-gaming via WAN port.
    -- IP 192.168.1.2 netmask 255.255.255.0
    -- DHCP disabled.
    -- LAN port 1 connected to Router 1's LAN port 1 with one cable.
    -- LAN port 2 connected to your main switch. (Not needed, but will help minimize non-internet traffic from hitting your router)

    You can now connect computers to the network thru the main switch. Walang specific order needed -- just label them nalang so you know which port connects to which computer :P
    'Non-gaming' PCs won't need static IPs sa network adapter. They will receive an IP from Router 1 and work as usual and use 'bulk-internet'
    Gaming PCs will need to have a static IP configured outside the pool of Router 1's DHCP server with netmask 255.255.255.0, gateway 192.168.1.2, DNS 192.168.1.2)

    You can choose another set of IP addresses basta isang subnet lang sila for easier management sa yo (no more static routes yay.) E.g. as per jay_soriano56's sample:
    Router 1: 192.168.1.1 with subnet 255.255.0.0 DHCP-enabled 192.168.1.100-200
    Router 2: 192.168.2.1 with subnet 255.255.0.0 DHCP-disabled
    Internet PCs: dynamic IP as assigned by Router 1's DHCP
    Gaming PCs: static IP (192.168.2.x for no conflict with Router 1) with subnet 255.255.0.0, gateway 192.168.2.1, DNS 192.168.2.1

    Pang mabilisang setup lang ito ah :P but it should work for you with plain SOHO/home routers you can buy in your local PC shop :P

    If talagang motivated ka and cheapo (like us) and may router ka that you can put dd-wrt in, gayahin mo ko and mag script ka :)) Else, use one router with tomato and use its built-in Dual-WAN feature. If super cheapo ka and hardcore, use dd-wrt and manually create your WAN2 interface and all :P

    For single-router DD-WRT dual-wan fail-over scripting: <click here for link>
    For single-router DD-WRT dual-wan load-balanced scripting: <click here for link>

    Yung sakin is one gateway per router which makes it easier for me since I don't have to set up WAN2 interfaces.
    Problem ko lang with going with dd-wrt as opposed to RouterOS or some other Dual-WAN router na talaga (perhaps may ganito sa Tomato -- haven't tried it yet no time lol) is how to use QoS to route particular connections thru particular ISPs (not per port) (e.g. http sa ISP1, video and gaming sa ISP2)

    As of now failover lang meron ako -- but I'm now experimenting with load balancing using hops and weights para magamit ko ng sabay yung 2 ISPs namin :P

    guys pano mag set ng bandwith priority sa isang pc kung several pc's ang nakaconnect sa isang router? some lan some via wifi?

    You have to set it sa router -- check if your router has QoS function. Then check what it can do -- e.g. bandwidth limit per PC, priority per MAC, IP, or subnet, priority levels, priority by type (video, http, torrent, gnutella).

Who's Online

861 active users within the last minute, 483 members, 378 guests.
Our newest member is dadasy14
Click here to see online members.

Browse Items

More »

Search TipidPC


Active Items for Sale

Active Want to Buys