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.


# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:aa:80:d7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:aa:80:e1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"


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.

        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 

 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

Followers

About Me