Go to edit file etc/udev/rules.d/70-persistent-net.rules and assign proper eth names to mac adresses.
This blog is created to keep things which I always need to remember in Python and Linux scripting. ... and few other things.
Tuesday, April 22, 2014
When Ubuntu does not start interfaces from eth0
When Ubuntu after starting does not have eth0, but instead created eth2 etc.
Go to edit file etc/udev/rules.d/70-persistent-net.rules and assign proper eth names to mac adresses.
Go to edit file etc/udev/rules.d/70-persistent-net.rules and assign proper eth names to mac adresses.
# PCI device 0x8086:0x100f (e1000)
Thursday, February 13, 2014
Remote python debugging using Eclipse
1. Untar file pysrc.tar into directory p2t
2. Start Debugger Server in Eclipse
3. Insert following code into python source code and execute.
2. Start Debugger Server in Eclipse
import sys
sys.path.append(r'../pysrc')
import pydevd
pydevd.settrace('10.51.2.91', port=5678) # IP of your Eclipse machine
or
pydevd.settrace('10.51.2.91', port=5678, stdoutToServer=True, stderrorToServer=True)
where IP is adress of machine running Eclipse program
Wednesday, January 15, 2014
Ubuntu : Bonding interfaces eth1 eth2 eth3 into one logical bond0
Bonding interfaces
# Bonding
up /sbin/modprobe -o bonding_ext1 bonding mode=4 miimon=500 updelay=0 xmit_hash_policy=layer3+4
up /sbin/ifenslave bond0 eth1 eth2 eth3
Checking if/which interfaces were bonded
cat /proc/net/bonding/bond0
In the file /etc/network/interfaces
# Bonding
up /sbin/modprobe -o bonding_ext1 bonding mode=4 miimon=500 updelay=0 xmit_hash_policy=layer3+4
up /sbin/ifenslave bond0 eth1 eth2 eth3
Checking if/which interfaces were bonded
cat /proc/net/bonding/bond0
Subscribe to:
Posts (Atom)
Followers
About Me
- Krzysztof Pakuła
- Znak zodiaku - Lew
