การใช้งาน minicom เพื่อ config network device

minicom โปรแกรมบน linux  ใช้สำหรับติดต่อกับ serial port  หรือ com port (RS 232) ที่เราคุ้นเคยกันน่ะแหละ เวลา config พวก router , switch , firewall หรือ อุปกรณ์อะไรที่มันมี console port จะมีสาย console มาให้ด้านนึงเราก็ต่อกับ อุปกรณ์  อีกด้านนึงต้องไปต่อกับ com port ที่คอมพิวเตอร์ของเรา ซึ่งถ้าเป็น windows ก็จะใช้โปรแกรม Hyperterminal ที่ติดมากับ windows ใช้ได้เลย หรือ จะเป็นโปรแกรมพวก SecureCRT ก็ได้  ใครที่เคยใช้งาน Hyperterminal บน windows น่าจะคุ้นเคยกับการตั้งค่าอยู่แล้ว minicom ผมเคยลองบน Ubuntu , Debian  ใช้ apt-get install minicom ได้เลย  ส่วนบน Gentoo ก็ emerge มาได้เลยเหมือนกัน

การ Set ค่า minicom  อันนี้ su เป็น root แล้วนะ

#minicom -s  เพื่อตั้งค่าต่าง ๆ จะมี menu แสดงขึ้นมา

 

จากนั้นให้เลือก Serial Port Setup เพื่อตั้งค่าต่าง ๆ  ให้กดตามตัวอักษรที่อยู่ด้านหน้า  ผม set อยู่แค่สองค่าคือ  A กับ E ก็ใช้งานได้

A   คือ serial port ส่วนใหญ่ก็จะเป็น /dev/ttyS0  หรือ /dev/ttyS1 ถ้าไม่แน่ใจลอง dmesg ดูว่ามันต่ออยู่ที่ ttyS อะไร

E   คือ Bit Rate  ซึ่งเท่าที่เคยใช้มา cisco จะเป็น 9600 8 N 1 ทั้งหมดไม่ว่าจะเป็น switch หรือ asa ส่วน 3COM จำค่าไม่ได้ อิอิ

* ส่วนใหญ่ผมจะใช้กรณีฉุกเฉิน ก็คือต่อสายconsole ไว้กับ server ที่ใช้งานอยู่เลย เผื่อกรณีเผลอ shutdown ip ที่เอาไว้ manage หรือ ลืม write configuration จะได้ไม่ต้องเข้าไปที่หน้าเครื่องสามารถ remote ทำได้เลยครับ

Be the first to start a conversation

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Connecting to %s

Follow

Get every new post delivered to your Inbox.