Tuesday, February 25, 2014

disable service apparmour

Disable & remove Apparmour

#sudo /etc/init.d/apparmour stop
#sudo /etc/init.d/apparmor teardown
#sudo update-rc.d -f apparmor remove

Wednesday, February 12, 2014

บันทึกคอนฟิก switch 3com 5500G

อ้างอิง nisolution.co.th : LINK
- คำสั่งที่ใช้ในการ Save Configuration
è ตัวอย่างการใช้คำสั่ง
<5500-ei>save                   -> ใช้คำสั่ง Save จากนั้นกดปุ่ม Enter
The configuration will be written to the device.
Are you sure?[Y/N] y -> ตอบ Y เพื่อทำการ Save จากนั้นกดปุ่ม Enter
Please input the file name (*.cfg)
[flash:3comoscfg.cfg]: -> เลือกชื่อไฟล์ที่ต้องการ Save Configuration ถ้าต้องการ Save ไว้ที่ไฟล์อื่นก็สามารถพิมพ์ชื่อไฟล์เข้าไปได้หรือกด Enter ผ่านไปโดยจะทำการ Save ไว้ที่ไฟล์ 3comoscfg.cfg
- คำส่งที่ใช้ในการ Factory Default
è ตัวอย่างการใช้คำสั่ง
<5500-ei>reset saved-configuration -> คำสั่งที่ใช้ในการ Factory Default จากนั้นกด Enter
The saved configuration will be erased.
Are you sure?[Y/N] y -> ถ้ามั่นใจแล้วตอบ Y แล้วกด Enter
Configuration in flash memory is being cleared.
Please wait …
<5500-ei>reboot -> จากนั้นใช้คำสั่ง reboot เพื่อ Restart อุปกรณ์
This will reboot device. Continue? [Y/N] y -> ตอบ y อีกครั้งเพื่อทำการ Reboot
หลังจากสั่ง Reboot ตัวอุปกรณ์แล้วจากนั้น Switch จะกลับมาเป็นค่า Default ที่มาจากโรงงานโดยค่า Configuration เดิมจะหายหมด โดยเราจะต้องทำการตั้งค่าเริ่มต้นของระบบใหม่ไม่ว่าจะเป็น Password ของ Admin สิทธ์ในการเข้าถึงต่างๆ เวลาของระบบ รวมถึงค่า Configuration ต่างๆ

DHCP multisubnet on Linux dhcp server


Edit config

------dhcpd.conf---------
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

# internal subnet.
subnet 192.168.x.0 netmask 255.255.255.0 {
  range 192.168.x.90 192.168.x.150;
  option domain-name-servers 192.168.x.xx, 192.168.x.x;
  option routers 192.168.x.254;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.x.255;
}
# Other Subnet
subnet 192.168.2.0 netmask 255.255.255.0 {
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.2.255;
        option routers 192.168.2.1;
        option domain-name-servers 192.168.x.xx, 192.168.x.x;
        range 192.168.2.10 192.168.2.120;
}

host computer {
  hardware ethernet 00:E0:7D:FD:04:AB;
  fixed-address 192.168.x.xx;
}


configure switch 3com 5500G-ei ให้ DHCP Relay