No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
rbmode.py

README.md

rbMode

Tool for setting LAN/WAN mode on riverbed servers

Modes

  • n(oline): physically disconnect ethernet
  • b(ridge): bridge interfaces (bypass mode)
  • u(niversal): use interfaces as normal network interfaces

Installation

aptitude install python2
wget https://raw.githubusercontent.com/c0d3z3r0/rbmode/master/rbmode.py
cp rbmode.py /usr/local/sbin/rbmode
chmod +x /usr/local/sbin/rbmode
echo i2c-dev >>/etc/modules

cat <<"EOF" >/etc/systemd/system/rbmode.service
[Unit]
Description=rbMode
Before=network-pre.target
Wants=network-pre.target

[Service]
Type=oneshot
ExecStart=/usr/local/sbin/rbmode <mode>  # Change <mode> to n, b or u

[Install]
WantedBy=network.target
EOF

systemctl enable rbmode.service
  • Load i2c-dev and set the mode manually

     modprobe i2c-dev
     rbmode u