Monday, October 19, 2009

FreeBSD and multiple gateways

Question: How to add multiple gateways to a FreeBSD?
Answer: No you can not do this (at least directly) on FreeBSD. FreeBSD don't support multiple gateways.
Workaround solution: If you have a server with 2 set of IPs and each set have there own gateway.

  • First, you must select one of the gateway to be a default gateway.
  • Then, You need ipfw (or any FreeBSD firewall solution),
    Check that your kernel support ipfw, if not, recompile your kernel with the following options(IPDIVERT and DUMMYNET is not required, but if you add IPFW/IPFW2 it better to also add these two options)
    #Firewall & NAT & DummyNet 
    options IPFIREWALL
    options IPDIVERT
    options IPFIREWALL_DEFAULT_TO_ACCEPT
    options IPFIREWALL_VERBOSE
    options IPFIREWALL_VERBOSE_LIMIT=100
    options DUMMYNET
    options IPFW2
    add the following rule to your ipfw rules set.
     ipfw add rule_no fwd second_gateyway_ip ip from ip_of_this_gateway to not me
    For example, I have 2 ip set (10.0.0.100,10.0.0.101,10.0.0.102 for gateway 10.0.0.254) and (192.168.0.77,192.168.0.78 for gateways 192.168.0.254). I chose 10.0.0.254 as the default gateway. So, my ipfw rules are
     ipfw add 100 fwd 192.168.0.254 ip from 192.168.0.77 to not me
    ipfw add 110 fwd 192.168.0.254 ip from 192.168.0.78 to not me
Source: http://freebie.miraclenet.co.th/server/

Thursday, October 08, 2009

Články o administraci CISCO switchů

http://www.samuraj-cz.com/clanky-kategorie/cisco-admin/

Článek o konfiguraci CISCO a ESX teamingu
http://www.samuraj-cz.com/clanek/vmware-esxi-a-nic-teaming-aneb-pripojeni-pres-vice-sitovek/

Thursday, September 24, 2009

Configure BIND DNS to Answer Active Directory Queries

How to configure BIND DNS to Answer Active Directory Queries ...
http://www.linuxquestions.org/linux/answers/Networking/Configure_BIND_DNS_to_Answer_Active_Directory_Queries

Quick Setup:
If you have an Address Record (A) that identifies your server name like this:

dc1.example.com. A 111.222.333.444

Then your SRV records for this DC would be as follows

_ldap._tcp.example.com. SRV 0 0 389 dc1.example.com.
_kerberos._tcp.example.com. SRV 0 0 88 dc1.example.com.
_ldap._tcp.dc._msdcs.example.com. SRV 0 0 389 dc1.example.com.
_kerberos._tcp.dc._msdcs.example.com. SRV 0 0 88 dc1.example.com.

Tuesday, September 01, 2009

HA “Deepdive”

Article at http://www.yellow-bricks.com/vmware-high-availability-deepdiv/ very deeply describe VMware HA functionality.

Article clearly explains:
  • Primary and Secondary nodes
  • Isolation Response
  • Slot sizes/Admission Control
  • Advanced settings

Thursday, July 02, 2009

A “Multivendor Post” to help our mutual iSCSI customers using VMware

Very nice article explaining iSCSI in ESX environment
http://virtualgeek.typepad.com/virtual_geek/2009/01/a-multivendor-post-to-help-our-mutual-iscsi-customers-using-vmware.html

Platespin Recon 3.6 - bugs and issues

Platespin Recon 3.6 have big issues with hardware inventory of some servers. It can hang your server during CPU model checking!!! Platespin released hotfix for that. But that's not all. When you use database PostgreSQL 8.3 which is bundled with Recon it has significant performance issues. I was waiting for some reports several hours!!! I have troubleshooted and realized that there is some problem with SQL communication between Plaspin Recon application server and PostgreSQL. You can find error messages in PostgreSQL log file. It says something about abnormal client termination. If you use MS SQL Server it works like a sharm.

MS Windows Virtual Memory Management on consolidated virtual workloads

When you virtualize lot of MS Window workloads you can observe lot of "Memory Pages/s" from virtual machines to physical disk subsystem (system swaping inactive memory pages to hard drive) . If you haven't enough IO performance in your storage your virtual machines becomes slow. For virtualization is normaly used SAN environment. Don't forget design capacity and performance on your storage for page files. If you want to tune your MS Windows and optimize page file IOs to your storage try disable (if you have enough RAM) or optimize Windows Page File.

Articles about this topic:
http://www.techarp.com/showarticle.aspx?artno=143
http://www.petri.co.il/pagefile_optimization.htm
http://www.instantfundas.com/2008/07/disable-windows-page-file-save-your.html
http://www.windowsdevcenter.com/pub/a/windows/2004/04/27/pagefile.html
http://smallvoid.com/article/windows-page-file.html

Tuesday, June 23, 2009

PERL Getopt and GetOptions

When you code unix program first of all you need to get user options. Two Perl modules (Getopt and Getoptions::Long) work to extract program flags and arguments much like Getopt and Getopts do for shell programming. The Perl modules, especially GetOptions::Long, are much more powerful and flexible.

See full article at http://aplawrence.com/Unix/perlgetopts.html

Ultimate Deployment Appliance

Unattended OS installations (Windows, Linux, ESX, Solaris) over the network set-up in minutes! Look at http://www.ultimatedeployment.org/