Rs Group Of Industries is a website & Software development company that specializes in providing e-commerce solutions, corporate style graphics creations and software development. Simple Web sites (HTML only) Web sites with Shopping Cart and payment gateways Web sites for product display Web Applications for Sales management and Order placement Content Management Web Applications Inventory Management Website:- www.mobileinfoworld.com
Wikipedia Search By Rastutorial
Search results
Monday, January 23, 2023
You fair can't hold up to begin overseeing and designing switchport security, spanning-tree, etc. And after that you get tired of having to move the comfort cable from one switch to the other. And you do not have the ability to play along with your lab remotely with Raspberry Pi. Initially, I was progressing to purchase into a few sort of support server. Either utilize an ancient 2500 switch or see at OpenGear. But why not utilize an Raspberry Pi which would fetched less than $100! That fair made me cheerful.
What you will need:
- Raspberry Pi
- USB to 4 Port Serial Cable
To get started, I installed Raspbian. Download the latest Raspbian image and extract the zip file. You can use win32diskimager-v0.9-binary to load the image to your SD card.
Go through the initial setup of Raspbian and be sure to enable SSH. Before accessing the Raspberry Piserver remotely, I had to configure the Ethernet interface:
sudo nano /etc/network/interfaces
This is my following static configuration:
iface eth0 inet static
address 10.1.10.250
gateway 10.1.10.1
netmask 255.255.255.0
network 10.1.10.0
broadcast 10.1.10.255
Save that sucker and reboot for good measure: sudo reboot
We would like to change the hostname from raspberrypi to CONSOLE: sudo nano
/etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.1.1 CONSOLE
Then modify the hostname file:
sudo nano /etc/hostname
CONSOLE
Now moving on to the actual console portion of this project. We'll use Ser2net which allows you access the serial ports via telnetting into the Raspberry Pi.
wget http://downloads.sourceforge.net/project/ser2net/ser2net/ser2net-2.9.1.tar.gz
tar -xzvf ser2net-2.9.1.tar.gz
cd ser2net-2.9.1/
./configure
make
sudo make install
make clean
Raspberry Pi recognized all the connectors but the actual device is connected to ttyUSB0.
Let's edit the ser2net configuration to get things going. The following is the configuration for each serial connection:
sudo nano /etc/ser2net.conf
Save that file and lets make sure Ser2Net starts up automatically:
sudo nano /etc/rc.local
Add the following above exit 0
/usr/local/sbin/ser2net -n -c /etc/ser2net.conf
Create a log directory for ser2net sessions:
sudo mkdir /var/log/ser2net
The ser2net.conf file follows the following format:
::::
https://mobileinfoworld.com/?p=803
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment