Showing posts with label Maxis Home Fiber. Show all posts
Showing posts with label Maxis Home Fiber. Show all posts
Jan 29, 2015
Maxis Home Fiber internet (or TM Unifi) with FreeBSD server
Setting up the internet for Maxis Home Fiber (or TM Unifi) in FreeBSD are pretty easy and straight forward. The important thing you need to know is, their vlan ID/tag for data, Maxis Home Fiber using vlan id 621 (for data) and TM Unifi using vlan id 500.
1. Open your /etc/rc.conf and put this:
cloned_interfaces=”vlan0″
ifconfig_vlan0=”inet 10.1.1.2 netmask 255.255.255.0 vlan 621 vlandev em0″
The inet IP can be anything, and my em0 network interface is connected to the fiber optic modem, I’m using 621 vlan id for Maxis Home Fiber, for Unifi change it to 500.
2. Restart your server, if you don’t want to restart, then google for manual command to setup the vlan on fly.
3. Make sure the vlan0 and em0 status are active:
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1492
options=3<RXCSUM,TXCSUM>
ether 2c:27:d7:14:13:1e
inet 10.1.1.2 netmask 0xffffff00 broadcast 10.1.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
vlan: 621 parent interface: em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1492
options=1db<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING,VLAN_HWCSUM,TSO4>
ether 2c:27:d7:14:13:1e
inet 10.1.1.1 netmask 0xffffff00 broadcast 10.1.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
4. Then proceed to edit your ppp.conf or mpd.conf:
Add this for ppp.conf :
set device PPPoE:vlan0
set authname user@home.maxis.com.my
set authkey password
Add this for mpd.conf :
set auth authname “user@home.maxis.com.my”
set auth password “password”
set pppoe iface vlan0
5. You are ready to go, just dial pppoe like usual.
6. IMPORTANT NOTE for Maxis Home Fiber user, you will get a LAN ip of 10.x.x.x for you WAN interface, if you hosting a server like web, email and others, you will need a public IP for those, so you need to call Maxis customer service support to request a public IP for you connection, after you get the public ip activated from Maxis, your username will changed from user@home.maxis.com.my to user@public.maxis.com.my, make sure you change it in your config files.
7. Enjoy fiber optic broadband internet with FreeBSD server.