Rename interface Linux
Example:
[root@rr ~]# cat /etc/sysconfig/hwconf | grep -A 16 NETWORK
-
class: NETWORK
bus: PCI
detached: 0
device: eth12
driver: e1000e
desc: "Intel Corporation 82572EI Gigabit Ethernet Controller (Copper)"
network.hwaddr: 00:15:17:4b:76:2c
vendorId: 8086
deviceId: 10b9
subVendorId: 8086
subDeviceId: 1093
pciType: 1
pcidom: 0
pcibus: 5
pcidev: 0
pcifn: 0
-
[root@rr ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth6
# Intel Corporation 82572EI Gigabit Ethernet Controller (Copper)
DEVICE=eth12
BOOTPROTO=static
HWADDR=00:15:17:4B:76:2C
ONBOOT=yes
TTN MTK
Kepanjangan di atas bisa dibilang, Tidur Tak Nyenyak Makan Tak Kenyang. Itu mungkin tanda-tanda stress (termasuk penulis “stress-red”).
How to disable ipv6?
Stickies from centos.org/
Edit 2 file berikut:
[root@pandaren ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
GATEWAY=xxx.xxx.xxx.xxx
HOSTNAME=xxx.xxx.co.id
DOMAINNAME=xxx.co.id
[root@pandaren ~]#
[root@pandaren ~]# more /etc/modprobe.conf
alias eth0 tg3
alias scsi_hostadapter ata_piix
alias ipv6 off
alias net-pf-10 off
[root@pandaren ~]#
exclude domain in modsec
Using Apache/2.2.11 PHP 5.2.9 (cPanel) and mod_security2.
add this line after default action.
SecRule SERVER_NAME "yourdomain0.com" phase:1,nolog,allow,ctl:ruleEngine=off
SecRule SERVER_NAME "yourdomain1.com" phase:1,nolog,allow,ctl:ruleEngine=off
SecRule SERVER_NAME "yourdomain2.com" phase:1,nolog,allow,ctl:ruleEngine=off
file size routing table
Kurang kerjaan nganalisa bgp v4 RoS.
[agusr@rr.bgp]
[agusr@rr.bgp] /ip route pr count-only
296607
[agusr@rr.bgp] /ip route print detail file=route.txt
[agusr@rr.bgp] /file print
# NAME TYPE SIZE CREATION-TIME
0 route.txt .txt file 73037417 may/15/2009 09:40:40
[agusr@rr.bgp]
routing table bgp (international) jika di jadikan file sekitar 72 MB, ada yang mengklaim dengan router 128MB ram cukup untuk menangani proccess ini. Non router machine and network proccessor ? I don’t think so.
Configurasi di atas menggunakan RoS MT dengan RAM 2GB, Q2Quad 8200 dan butuh waktu sekitar 20 detik untuk mengExport routing table untuk 1 Peering International multi hop n full route advertise. Bagai mana dengan 2 Peering International ? ( 20detik x 2 ) atau 4 Peering ? ( mungkin berasap kali ya )
Max connection squid
Berdasarkan case Sat Mar 21 03:25:33 WIT 2009, posisi client menggunakan download manager dengan 60 thread simultaneous connection, sekitar 4 bilik. Tidak perlu dbahas apa yang terjadi dengan mesin proxy server @_@.
# buka squid.conf
# vim -N /etc/squid/squid.conf
# code
acl localnet 192.168.0.0/24
acl limitconn maxconn 20
http_access deny localnet limitconn
# reconfigure / restart squid.
squid -k reconfigure atau /etc/init.d/squid restart
Read the rest of this entry »
Install Lighttpd + php5 Debian Lenny
1. Pastikan package, index files terbaru.
gmt:~# apt-get update
gmt:~# apt-get upgrade
2. Install Lighttpd.
[root@gmt ~]# apt-get install lighttpd Read the rest of this entry »
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fam libfam0 libterm-readkey-perl libterm-readline-perl-perl mime-support portmap
Suggested packages:
openssl rrdtool apache2-utils
The following NEW packages will be installed:
fam libfam0 libterm-readkey-perl libterm-readline-perl-perl lighttpd mime-support portmap
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 561kB of archives.
After this operation, 1806kB of additional disk space will be used.
Do you want to continue [Y/n]? y

