Tuesday, August 30, 2016

Setting up DHCP address reservation

Good afternoon everyone, in this brief post I will talk about how you can enable DHCP address reservation on your router. For demonstration purpose I'm using a TP-Link router which is very common but any other brand of router should have the similar option too.

Before getting into how to do it let's discuss DHCP. It stands for Dynamic Host Configuration Protocol and as it's name suggests it is an network protocol used on Internet network protocol. This protocol is controlled by a DHCP server to dynamically distributes network parameters such as IP addresses. So it drastically reduce the workload for the network engineer who is in charge with deploying a network. If DHCP wasn't available network engineer or the person who is setting up the network has to manually assign IP addresses to all the devices but with DHCP the server itself assigns IP addresses to devices automatically. Connect a new device and it will get a new IP automatically, you don't have to do anything. If you think about depleting IP addresses then lease time will help you with that. Unused IP addresses will be re-cycled via this. DHCP server leases IP for certain set period of time, if after that time the device no longer needs the IP it will be assigned to some other device. So it's all well and good right then where is the point of reserving certain IP?

Here is the thing, if you are running a network attached storage or IP TV or media center then DHCP might not be ideal as it will change the IP address over time. Say if you configure your phone to get certain data from certain IP, if that IP changes it will no longer get that data, you will have to enter the new IP. Now if you completely turn off DHCP then again you have to manually set all the IP addresses for different devices. Hence DHCP address reservation. In this method what is done is simply reserve certain IP address to certain MAC address or device address so that that IP won't be given to anyone. This ensures that certain devices will always get certain IP addresses. For example I always reserve IP address for my Raspberry Pi so that I can easily SSH into them. Let's look at the procedure then.


Procedure:

1. Get into the router via the web based interface, for different router it might be different for example
Tp-link can be accessed with http://192.168.0.1/ or tplinklogin.net
SMC can be accessed with http://192.168.1.1/



After that login with the username and password, it should be written under the router or on the box if you haven't changed it yet.

2. After getting into the router you will be greeted with this page where you should find something like DHCP. We need to get into that too


3. Now getting into DHCP we will find the options for turning it on or off. Default it should be enabled and we want to keep it that way.


4. Next we need to go to the DHCP Client list to get the MAC address for our client. If you can't determine the device from the client name, for example it is very tough to determine android devices so in that case you might want to gather the IP address or MAC address from the device itself. Keep that MAC address in mind to assign the IP address that you want to assign. Remember the lease time I was talking about? Look carefully and you will see some devices have their IP address with lease time, after the expiration either those IP addresses will be renewed or given to some other device if needed. Those with the Permanent lease time are reserved.


5. Now let's move on to the final part the Address reservation, in here you will see any existing one that is already configured or you can add/modify/delete any entry.


6. As I already have couple devices configured to have same IP address all the time those devices are already listed here. If you are doing it for the first time you will see an empty table. To add a new entry you simply click Add new and put in the MAC address and IP address and done. You might want to restart the router afterwards.


So that's how easy it is got enable DHCP address reservation and saves a lot of time finding IP addresses of devices. Now for an example I will always reach my Raspberry Pi 2 at 192.168.0.103

Hope it has helped.

Read my other posts here.

Friday, August 26, 2016

Learn English - Euphemisms

Good morning everyone and in this particular post I will talk about Euphemism and it's usage with couple examples.


So what is Euphemism? 


To simply put it is something to replace certain harsh or offensive words with something mild or less unpleasant. So basically it substitutes harsh, offensive, direct words or words that has negative stigma attached to it to something softer in order to avoid offending people or over inflate the importance of some words. It can be a word or two or an expression. Honestly I'm not a big fan Euphemisms, I like to call things whatever it is in most cases but in this day and age it is very easy to offend people, so it is better to learn about an alternate way of expressing your mind. Hopefully this hasn't offended anyone yet. To me personally it is not about showing disrespect or something because I think someone can be disrespectful inside even if they use a milder word but someone can be respectful and yet call spade a spade. Now Let's take a look at couple examples that are very common.


Examples:

1.

Death, instead of blatantly saying someone has died we can use something different like

Passed away,
Meet someone's maker,
Six feet under,
Didn't make it,
Departed,
Negative patient outcome etc.


2.

Toilet, many people feels shy using this word so they use something else like

Little boy's room,
Rest room,
Wash room,
Lady's room,
Go and see a man about a dog,
Powder your nose,
Spend a penny etc.


3.

Unemployed, it is a bit harsh to say someone is unemployed so we can use

Laid off,
Between jobs etc.


4.

Handicapped or Disabled, again rude to use such terms and about the word disabled they are really not disabled so it is better to use something like this

Mentally challenged,
Physically challenged,
Differently-able etc.


5.

Fat, again some people consider this word to be rude so the following words can be used instead

Overweight,
Full figured,
A few extra pounds,
Let himself go,
Portly,
Big boned,
Chubby etc.


6.

Stolen(or cheap product), often times we can buy very cheap products from something like a black market that we know might have been stolen, we don't say stolen we say the following words,

Fell off the back of a truck,
Get off the truck etc.


7.

Used, in car dealership using the term used kind of decreases the value of the good so they instead use

Previously enjoyed.


8.

Getting pregnant, some people feel shy to admit it or say anything about it so they use different terms like

Bun in the oven,
Knocked up(some people actually consider this to be even more negative).


9.

Jail, it is not pleasant to say someone is in the jail rather the following term is used.

Correctional facility.


10.

Genocide, I don't have any problem with this word rather I would say it is better to use this because softening it might undermine the severity of what happened. We know examples of genocide like Armenian Genocide of First World War, Jewish genocide on Second World War, Genocide on Bangladeshi people on 1971 etc. and these were really severe so again I don't see any point of using anything else but people use the term

Ethnic cleansing.


11.

Prostitution might sound taboo and people use

Turn a trick.


12.

Accidental death, which often times happen specially during war time or invasion time like now and lot of time civilian casualty happens and rather than using accidental death media or government  usually uses

Collateral damage.


13.

To fire someone might not sound good so instead of saying that we can use

Letting someone go.


14.

Euthanize is to kill someone(usually animal) to lessen their suffering. In a terminal case where the animal usually a pet is going to die anyway and suffering greatly they are instead euthanized and people don't like to call it this so they say

Put to sleep,
Pull the plug.


15.

Homeless, instead of saying homeless it is polite to use

On the streets.


16.

Abortion might sound harsh or saddening to some people so they use

Pregnancy termination.


17.

Pornography might offend some people so use

Adult entertainment.


18.

Liquor, wine and beer might offend people too so instead use

Adult beverage.


19.

Prostitute, some people use

Comfort woman although I don't agree with this because this word was used during world war 2 and comfort women were the girls that were forced into sex slavery by Japanese people so not really prostitutes.


20.

Late kinda sounds harsh so use

Chronologically challenged.


21.

To have Sex sounds aggressive to some people so use

Sleep together,
Go all the way.


22.

Short, don't say someone is short which might offend that person instead use

Vertically challenged.


23.

Maid, the person who works at home can be called

Domestic engineer.


24.

Ugly can be derogatory so use

Appearance deficit.


25.

A place where chance of getting mugged is high can be referred to as

Vibrant area of town.


26.

Lazy can be harsh too so use a bit more polite

Couch potato.


27.

Stripper is a person who usually dance or performs naked so use

Exotic dancer.


28.

Elderly, rather than saying it better say

Senior citizen.


29.

Poor also might sound rude so use

Economically challenged.


30.

Unwanted call is kind of a call to or from wrong person and can be said

Courtesy call.


These are some common Euphemisms that you might hear on a daily basis.


Read my other posts here.