You are running ifconfig eth1 as a regular user. You need to be superuser. The "$" at the end of the prompt indicates a regular user. A "#" indicates superuser.
Either do a sudo command or become "su -" and run the same command from there. I run a Linux firewall (Fedora core 9) and turn on forwarding so that packets will cross between the two cards.
Take a look at the "/sbin/ifup <device>" and the "/sbin/ifdown <device>" where <device>, in your case, is either eth0 or eth1. If the cards are configured, these two commands will toggle the devices on and off. I turn forwarding off/on in my iptables firewall script.
Port forwarding is turned on:
## Enable IP Forwarding
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
echo "1" > /proc/sys/net/ipv4/ip_forward
else
echo "Uh oh: /proc/sys/net/ipv4/ip_forward does not exist"
echo "(That may be a problem)"
echo
fi
Either do a sudo command or become "su -" and run the same command from there. I run a Linux firewall (Fedora core 9) and turn on forwarding so that packets will cross between the two cards.
Take a look at the "/sbin/ifup <device>" and the "/sbin/ifdown <device>" where <device>, in your case, is either eth0 or eth1. If the cards are configured, these two commands will toggle the devices on and off. I turn forwarding off/on in my iptables firewall script.
Port forwarding is turned on:
## Enable IP Forwarding
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
echo "1" > /proc/sys/net/ipv4/ip_forward
else
echo "Uh oh: /proc/sys/net/ipv4/ip_forward does not exist"
echo "(That may be a problem)"
echo
fi