Connecting four 2824 switches with LAG guidance

Hello.
I have four Powerconnect 2824 switches that I would like to link together using LAG.  I am new to Dell switches and I could use some guidance.  I attempted this with poor results, so any advice would be appreciated.  We are not using any vlans, and everything is on the default of 1.  There are two servers that utilize nic teaming, but they are switch independent teams that do not require LAG on the switches.  My goal is to increase the throughput between the switches.  Should I use the basic LAG layer 2 settings?  Do I need to change any of the default settings on the switch?  Do I have to set up lag on both ends?  I appreciate any advice with this.

I have all switches connected to my root switch.  So root> switch1, root>switch2, root>switch3.  All on the same default vlan id 1.  We are not using vlan yet.  Do I set the LAG group on all switches or just the root 2824? When I tried earlier I had bad performance and one LAG said it was 1000M, one said 10M, and the last said it was hybrid.  I wish there was a tutorial or document on setting this up as I am new to this.  Do you know of anything like that for these switches?
More info:
Root switch has port 1,2 set for LAG to switch1.  port 3,4 set for LAG to switch2.  port 5,6 set for LAG to switch3.  Switch 1,2,and 3 all have port1,2 set for LAG.  Please let me know if this does not make sense.

Similar Messages

  • Connecting two Nexus switches with link

    Hi,
    I would like to connect two nexus switches with a link. Like one c5020 and one c5548p. How do i need to configure the ports at both the switches which will be joined with a fiber cable.
    For MDS switches such links becomes E-port and fabric is merged. Not sure what happenes at the Nexus swictches. Any input will be appreciated.
    Thanks,

    Do you have fc modules in each nexus? If so, they act much like the MDS 9148. All ports should be default auto speed and auto switchport mode. Insert fc-sfp's and a regular multimode fc cable between them. Default mode is fc switch.
    If that doesn't work, configure the mode on each port as E.
    Once done, the fc switch portion of each nexus will merge.
    Dave

  • Can cisco CAP2702i connect to Cisco3850 switch with wireless LAN controller license via another switch ?

    If i connect cisco AP - CAP2702i to another switch, and use trunk port between Cisco3850 and the other switch , can the AP able to register with Cisco3850 with wireless LAN controller  ?   or the AP has to directly connect to Cisco3850 in order to register?

    The AP and 3850 wireless management are in same Vlan( vlan202). The AP is new unit and did not join MC before. 
    What i did on 3850 :
    input command - wireless management interface vlan 202
                              - ap cdp
                              - wireless mobility controller
    Is there any config i miss out on 3850 and any config need to be set on AP ?
    From Ap console output show me "could not discover WLC using dhcp ip". Is it due to AP dont have IP address? If AP register with WLC through layer 2 , i believe there is no related with IP.Correct me if i'm wrong.
    Due to the 3850 is not a POE, the AP unable directly connect to 3850  . I guess have to use power adapter to power on the AP.

  • Help with connect four

    im trying to write a connect four project but im having a little trouble.
    import java.util.Scanner;
    public class Main{
              Scanner scan = new Scanner(System.in);
         int grid[][];
         int currentPlayer;
         int rows = 6;
         int columns = 7;
         public Main(){
              grid = new int[7][6];
              for(int i = 0; i <7; i++){
                   for(int k = 0; k <6; k++){
                        grid[i][k] = 0;
              currentPlayer = 1;
         for(int j = 0; j <=7; j++){
              for(int n = 0; n < 6; n++){
                   if(grid[j][n] == 0){
                        getNextMove();
                        showBoard();
         public void showBoard(){
              System.out.print("+-");
                for ( int j = 0; j < 7; j++ )
                    System.out.print((j+1) + "-");
                System.out.println("+");
                for (int i = 6-1; i >= 0; i-- )
                    System.out.print("| ");
                    for ( int j = 0; j < 7; j++ )
                        char c = ' ';
                        switch ( grid[j] )
    case 0 : c = ' '; break;
    case 1 : c = 'x'; break;
    case 2 : c = 'o'; break;
    System.out.print(c + " ");
    System.out.println("|");
    System.out.print("+-");
    for ( int j = 0; j < 7; j++ )
    System.out.print("--");
    System.out.println("+");
         public void getNextMove(){
         System.out.println("Player " + currentPlayer + " Enter the column to place checker in.");
         int column = scan.nextInt()-1;
         int row =0;     
    if(grid[column][row] == 0){
         if(currentPlayer ==1 && grid[column][row] == 0){
              if(row > 1){
                   if(grid[column][row-1] == 0){
                        grid[column][row-1] = 1;
                   grid[column][row] = 1 ;
                   currentPlayer = 2;
              else{
                   if(currentPlayer ==2 && grid[column][row] == 0){
                   grid[column][row] = 2;
                   currentPlayer = 1;
         else{
              if(row > 6){
                   System.out.println("That column is full, enter another column");
                   column = scan.nextInt()-1;
                   row = 0;
         else{
              if(grid[column][row] != 0){
                   grid[column][row + 1] = currentPlayer;
                   if(currentPlayer ==1){
                        currentPlayer =2;
                        else{
                             if(currentPlayer ==2){
                                  currentPlayer = 1;                     }
    public static void main(String[] args) {
    Main game = new Main();
    so far this program creates the grid or play chart and it allows the user to add checkers only up to the first two rows, it can fill in all the columns but never gets past 2 rows up and i cant figure out why, ive tried a few different ways to try to get it to work but im having trouble figuring it out, if anyone can give me a hint or some help that would be great.
    (and i kno the porgram isnt the nicest but thats the way it has to be so if you can comment then just comment on the code i have and not what you would do to write this program cuz i kno there are plenty of easier ways) thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    The problem lies in your getNextMove method, as I'm sure you've guessed. Let's take a step back and look at the task. You want to drop a checker into the board. It should occupy the first open slot, yes? But to find out which one is the first open slot, you will need to look at each slot in turn to see if it's full. That sounds to me like a loop:
    * Start with a current row of zero.
    * As long as the current row has a checker in it, increment the row number.
    * Put a checker in the current row at the specified column.
    Does that make sense? I would suggest you write a method called "findFirstRowInColumn(int columnNumber)" that returns the row number of the row where the next checker would go. Then you can call that method whenever you need to figure out where to put a checker. Feel free to post your implementation of that method here if you want us to look at it. :)

  • Connecting 2 switches with Fiber

    Hi,
    I have a basic question regarding two 3750G switches I would like to connect using fiber.
    I have the 2 Twingig modules converter available for each switch.
    I need to know my requirement to connect these two switch by their uplink.
    I have already on my list:
    1 SFP module (GLC-SX-MM) the question is how many SFP modules will I need to connect these 2 switches as each switch has 2 Twingig port (hence 4 SFP ports available). since each Twing Gig port has 2 SFP module.should I use 1 Twin Gig module and ordre 2 SFP modules (GLC-SX-MM) for each switch (hence 4 GLC-SX-MM )for the connection to work ?
    Thanks for your guidance and related documentation you'll be giving.

    According to the following Cisco document, the Twingig converter module can be used with up to 2 SFPs; which would seem to indicate the use of 1 SFP in a Twingig converter module is supported.
    <http://www.cisco.com/en/US/docs/switches/lan/catalyst3750e_3560e/hardware/install/notes/1757202.html>
    You could install 2 SFPs per switch and run EtherChannel to gain additional uplink bandwidth.

  • Best Pactice for Connecting ASA to Catalyst Switch with Mulitple VLANs

    Hi all,
    Have the following network topology that was in place when I started the job (See attached pdf).  Am thinking it might be better if I could eliminate the Cisco 2811 router and connect directly from the ASA to my 12 port fiber switch (192.168.7.1).  In my thinking this would eliminate an unnecessary piece of equipment and also give me a gig link to my ASA as opposed to the 100 meg link I have now with the old router.  The 12 port fiber has links to most of my IDFs and is acting as my VLAN gateway for all inter VLAN routing.
    Is my current topology ideal or would I be better served to remove router and connect directly to the 3750G-12s Fiber switch or my Master Switch (192.168.7.4)?  Only thing I don’t like about direct connect to Master switch is that it takes scheduling a major outage for me to reboot it.  However, if that is best practice in this case, I can live with it.
    It appears the 12 port fiber cannot have IP addresses  assigned directly to Ports, only to VLANs.  So would I have to create a separate vlan for my ASA and assign IPs to the vlan on each end of the connection?
    I have read some suggestions that say it is better to terminate all VLANs on the ASA.  So as I understand that would require creating subinterfaces on my ASA LAN port and assigning each subinterface to its own VLAN  Inter VLAN routing would then be controlled by ASA.
    Does not seem practical to me as I have about 15 VLANs total.  Not showing everything in the drawing.
    Guess my main question is “What is best practice for topology and routing in my scenario?”

    Hi Mcreilly,
    You should be able to assign an ip address on cat6k sup720 if you are running native ios on sup 720.
    If you are running catos then you will not be able to do that and you can have it configured as trunk and connect to the router.Also I do not think that you need subinterfaces on router and trunk on switch because your cat6k with sup720 must be doing intervlan routing between vlans.
    You can just connect it on some port on any vlan and same subnet ip address which you have it on msfc for that vlan you can assign on the router interface and anybody want to go out via t3 link will get routes on sup720 and move out via router vlan.
    For suppose you do not want the router to be part of existing vlan you can create one vlan on cat6k sup720 and assign one port to that new vlan and connect the royter to that new vlan port and then create logical interface on msfc for that new vlan and assign an ip address range on that logical vlan and same subnet ip address range you can assign on router physical interface.
    Any one from other vclan get routed on sup 720 msfc and will move out via the vlan on which you have connected the router.
    because you have only one router you will not be able to maintain box level redundancy by which i mean if the router goes down t3 will be unreachable.
    HTH
    Ankur

  • Server with 3 NICs wants to connect to 2 switches

    I have two 6509 on the distro layer ( distro 1 and distro2 ), running layer 2 only. They are connected to two 6509s on the core layer. One of the server admins has a 3 port NIC on his server bundled together to increase bandwidth. He wants to connect it to 2 ports on the distro1 and 1 port on the other distro2 switch. All 3 distro ports he is connecting to are in the same VLAN and the VLAN is allowed on all port channel connections between distro and core switches.
    Will this even work since he is connected on different switches?

    Those stating that a NIC channel is not allowed to two individual switches should know that a NIC teaming is usually not a link aggregation (port-channel). If it is an active-standby-standby NIC team then all you need is to make sure all 3 ports belong to the same VLAN. Traffic will leave the server on the active link and the switches will learn that the MAC address is on this port. No Port-channel config is necessary on the switches.
    Load-balanced NIC teaming usually requires Port-channel if the same src MAC address can appear on multiple ports. In this case multichassis link aggregation is mandatory and you cannot connect to individual switches.

  • What do I connect 2 switches with router

    Hi, Everyone. I have this trouble and would like to get help.
    Here is my situation. I have one Verizon router in basement. I run the ethernet cable from router to one room in first floor. I have one Linksys switch in this room. This is switch 1. I have 2 computers connect to this switch, all working well. I then, run the cable from this room to second floor. If I directly connect this cable to computer in second floor, it works well. But, I have more computers in second floor. I bought another Linksys switch, switch 2. Here is my trouble, if I connect the cable from switch 1 to switch 2, and connect computer to switch 2, I have trouble. 
    All lights are on and stable, and seems all correct. But, from computer, I cannot see any connectivity, even I set up the IP address manually, it will not connect.
    I called Linksys supporting center. First, I was told that I should put cable in Uplink in Switch 1, and port 1 in switch 2. I did so. Does not work. Then, I was told that I should put cable in port 1 in switch 1, and port 1 in switch 2. I did so. Does not work.
    I am quite confused. In concept, I think, my configuration should work well. But, why not? Please advise on 1) If this configuration should work? 2) If should work, how can I do?
    Thanks a lot for everyone.  

    chuyux wrote:
    Thanks for your inputs. Here is the exact configuration.
    Router: Verizon Action Router. It has 4 numbered ports.
    I run straight cable from router to room 1 in that I have Switch 1.
    Switch 1 is EZXS88W (version 3.3). I put cable from router into port 7. This switch works very well. NO problem at all.  All ports are working well. So far, I connect 3 devices into this switch. None has problem.
    I then run straight cable from switch 1 to another room. There I have swtich 2. It is EZXS55W (version 4.1). I put the cable into port 1 of switch 2 (actually, I tried all ports). Then it does not work. No connectivity at all. I call the cable from room 1 to room 2 as Cable A (it is a straight cable). If I put cable A directly into computer, it works well. But, if I put into switch 2 (any ports) then connect computer to switch 2, I have no connection. 
    This is exactly my situation. What is the problem? What is the solution? 
    EZXS55W afaik is "smart port" so you can put that into any of the numbered ports ( I prefer port 1), have you tried switching these two "switches" to see if the autosensing feature of the 2nd switch is not broken?
    Also, what IP address are you getting on the computer you connected on the line going to the 2nd switch? It may be on static ip, but if not... can you try connecting that line back then set a static IP on the pc to check if it at least pings the first set of computers and router??
    "You tried your best and you failed miserably! "

  • Urgent Help Required for Connect Four Game

    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
         int player1;
         int player2;
         public PlayGame()
              //this.player1 = player1;
              //this.player2 = player2;
         public void StartGame()
         try{
         // int X = 0, Y = 0;
         //int value;
         int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
         int[][] ConnectFourArray = new int[6][7];
         int num1, num2;
         for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
         //Player player1;
         //Player player2;
         public ClassConnectFour()
              //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end class
    I am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda
    //

    Hi,
    Thanks for your help but I really don't understand the table lookup algorithm. Could you please send me some code to implement that.
    I will send you the formatted code as well
    Thanks for your help.
    looking forward to your reply.
    Koonda
    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
    int player1;
    int player2;
    public PlayGame()
    //this.player1 = player1;
    //this.player2 = player2;
    public void StartGame()
    try{
    // int X = 0, Y = 0;
    //int value;
    int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    int[][] ConnectFourArray = new int[6][7];
    int num1, num2;
    for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
    //Player player1;
    //Player player2;
    public ClassConnectFour()
    //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end classI am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda

  • What's a DVI-to-VGA connection have to do with sleep?

    I've been experimenting with hooking my HDTV to my Mac Pro's 5870 video card. Currently I have my 27" ACD connected to one of the mini displayports (mDP) and a VGA, connected through an Apple VGA-to-mDP (active) adapter to the other mDP. When I want to use the TV I can connect the HDTV to the 5870's DVI connection with a (passive) HDMI-to-DVI adapter. It works. Indeed it works too well! Whether the TV is taking input from the computer or not the computer thinks the TV is a third monitor which can get very confusing when the mouse is accidentally moved off my ACD on to the TV (6 feet away) and I can't find the cursor. Another minor nit is that using the DVI means no audio can be passed on the HDMI so the computer speakers are used unless of course I hook up a separate audio connection.
    I could get around the 3-monitor problem using SwitchResX but I prefer not to. I'm willing to simply manually connect and disconnect the HDMI cable on those few times I want stream stuff to the TV. But as an alternative I tried switching the TV and VGA connections, i.e., connect the TV to the mDP through a (passive) mDP-to-HDMI adapter and the VGA through a (passive) VGA-to-DVI adapter.
    This second scheme also works. However because all the adapters are now passive the VGA will disconnect when the HDMI is plugged in. Ok. I can live with that and I understand the behavior due to the 3-monitor limitations of the 5xxx cards (i.e., active adapters required).
    All the above was just background and context leading to the question I entitled this post with. Forget the HDMI connection. I have the ACD connected to its mDP and the VGA through the passive VGA-to-DVI adapter (i.e., the second scheme I described above). With this configuration my machine will not sleep on its own (i.e., at the time the energy saver specifies). I can "manually" put it to sleep ("Sleep" from the Apple menu). It just won't do it on its own (and none of the checkboxes in energy saver are checked -- wake for network for example -- and no active processes are running that would explain this behavior either).
    Experimentation has shown that it is somehow related to using the VGA through the DVI. If I put my original configuration back (VGA-to-mDP) the machine will sleep on its own at the designated energy saver preference time.
    What I don't understand is what's a DVI connection have to do with the energy saver sleep setting? The only remote possibility I can think of is perhaps the screen saver is running on both the VGA and ACD and an active VGA is sufficient to make the machine think there's activity when connected through the DVI (but not when connected through the mDP).
    Of course none of this is really a serious problem. I'm only asking for academic interest.

    I know I can do that but that's not the subject of this thread! I'm only asking why would a VGA connection to DVI keeps the computer from sleeping on its own.
    And, oh, by the way, another audio alternative is something like this,
    http://www.gefen.com/gefentv/gtvproduct.jsp?prod_id=5279
    although this requires stringing a separate audio cable.

  • Connecting to a NAS with different user accounts

    First, I just want to say that as a recent PC ---> Mac convert, I have been quite pleased with the switch. However, I just can't seem to figure out this issue.
    I have a Netgear DNS-323 NAS that I use for multiple purposes: backup, storage, video/audio streaming...etc. I am trying to set up quotas within the NAS to keep data usage in check. However, I cannot seem to get OSX to connect to the different NAS shares with a different user name for each one.
    For example, I am using one share for my time machine backup (yes, I know it is unsupported, let's leave that out for this discussion). That share is //192.168.x.x/MacBackup. I have set up a single user that has access to that share with a quota of 400GB (so TM doesn't eat up the entire NAS). That user's name is "backup".
    I have another share that I use for music/movies. That share is //192.168.x.x/Media. I want to connect to that share with a different account than the "backup" account used for the TM share. That way, I don't eat into the quota established for the backup share.
    However, no matter what I do, I cannot get OSX to let me configure it this way. Which ever share I connect to first is the only one I can connect to. For example, if I connect to the backup share as the backup user, than I cannot access the media share as it gives me access denied errors (as it should, as it still thinks I am the "backup" user).
    I have tried adding both of the username/password combinations into the keychain application, but I cannot seem to get it to work.
    Any suggestions as to what I am doing wrong?

    I guess no info on this. I will try and see how I fare. if anyone is interested let me know in which case i can share findings.
    One way round this might eb sharing libraries but I am not sure that is legal strictly as I suppose parents MAC in the Netherlands does not classify as a household MAC....

  • Access Connections Ethernet Location Switching only saves one port at a time

    Like many other people, I cannot get automatic location switching between two Ethernet networks to work properly.
    I have two stored network locations;  one for home and one for work.  Both of these are set up as Best Available Network with both Ethernet and Wireless.
    Under Tools - Location Switching, both networks are listed, and "Include Ethernet connections in automatic switching and prompt me to save Ethernet ports"  is checked.    However, in the details column, the current location has 1 saved port(s), and the other has 0 saved ports.    The saved port is always the one most recently connected.  
    If I go to Edit Saved Ports, only one location is listed, with the correct IP address and MAC address for the router.   If I connect at the other location, only that location is listed, again with the correct IP address and MAC address.
    The router IP addresses are different (work is 192.168.0.1, and home is 192.168.1.254), and obviously the MAC addresses are different, so it should be possible for Access Connections to distinguish them.  Unfortunately the only "editing" that is possible is to delete the saved port.  I would be happy to add a saved port manually, but that is not an option.  In addtion, despite the "...prompt me to save Ethernet ports" being checked, I have never received a prompt.  Even if I delete the saved port, it resaves automatically next time without any prompt.
    I have also tried setting up both locations as Ethernet only, but have exactly the same problem.
    My T520 was supplied with Access Connections 5.85 preinstalled.  I tried upgrading to 5.97 in the hope that it had been fixed in the meantime.  Unfortunately it has not.
    Access Connections is still marginally useful to me for automatic switching between Wireless and Ethernet, and for a simple manual switch of settings such as default printer, home page, and file sharing.  However, it would be very useful for the home and work locations to be autodetected and switched.  
    From the number of unresolved questions on this board on the same topic, it appears that this is a long standing deficiency with Access Connections.  Is there any chance of this being fixed?

    I found from another bulletin board that ethernet location switching seemed to work OK with Access Connections 3.82, but stopped working with releases after that, and from my experience still does not work with 5.97
    http://www.thinkpads.com/forum/viewtopic.php?f=18&t=38514
    Two questions:
    1. Does anyone know if Access Connections 3.82 works with Windows 7?
    2. If so, where could I get a copy?  The oldest version on the Lenovo website appears to be 5.50
    I will refrain from commenting on the necessity of going back to such an old version to recover basic functionality for this utility......

  • Help with four Aironet 1300 with mountain in the middle

    I am a novice at configuring Cisco equipment and need some pointers on what roles I would use to configure this site. The site consists of one main office, mountain top and one remote site. The main location with has a DSL connection, Server 2003 configured with DHCP, ip network 192.168.0.X and one Aironet 1300. The mountain top site has line of site to the main office and to the remote site. We have two Aironet 1300 on the mountain top site. At the remote site we have one Aironet 1300, network switch and a few pc?s. I think the Aironet at the main office needs to be the root bridge, but how should I configure the other Aironet?s? On the mountain site how would I connect the two Aironet?s together? Crossover cable? Also, I had a problem using telnet to configure the ip address on the Aironet?s at the mountain top site. I read the how to configure ip address when DHCP is disabled using HyperTerminal, but I can not get the access point to respond. At the remote site and main office I was able to configure the Aironet?s ip address to 192.168.0.180 and 192.168.0.185 and add a WEP key and a SSID. Basically the remote site needs access to the office site. Sorry for this being so long and thanks in advance. Casey

    My advice is try them as two bridge connections (root and non-root). Have you tried this: http://www.cisco.com/en/US/customer/tech/tk722/tk809/technologies_configuration_example09186a008058f53e.shtml
    About cable at the mountaintop, it depends on the distance between them.
    For the IP config, just put an address on bvi 1:
    int bvi 1
    ip address 192.168.1.1 255.255.255.0
    no shut ( maybe ?)
    exit
    ip default-gateway 192.168.0.1 (if necessary)
    That' it. Does it ping at all ? Are you trying from the ethernet connection ?

  • Using Catalyst 3550 Switch with Linksys Home Router and Cable Internet

    I've about pulled what little hair I have out of my head on this one, and need some configuration help.
    I have a Cisco Catalyst 3550 switch with five Windows 7 desktops, an Avaya PBX and five Avaya IP phones attached.  All of these devices are on a 192.168.0.0/24 subnet, and are communicating properly.  I will refer to this as network # 1. I also have SEPARATE network, we'll call network # 2, using AT&T ADSL service and a Netgear 4-port/wireless router/ADSL modem combo device, which is functioning properly with a couple of other Windows 7 desktops over its own wired Ethernet network, using DHCP, and also on a 192.168.0.0/24 subnet.  I thought it would be a simple integration, just plugging one of the 3550's ports to one of the DSL router's ports, in order to give the five Windows 7 desktop computers on network # 1 internet access via the DSL modem. Guess I was wrong.  When I connect the two switches together, although I get a good connectivity (green lights on both ports) and am able to ping the DSL router's gateway address (192.168.0.252) from network # 1's computers, the computers on network # 1 cannot access the internet. Also, the working computers on network # 2 lose their internet access as long as the two switches are connected together. I am not a Cisco guru, but there's got to be a way to make this scenario work.  Can someone provide me with a 3550 configuration that will allow me to extend my internet service from network # 2 on the DSL router to my 3550 switch and their computers?  Here's what I am looking for:
    INTERNET ---> ADSL MODEM ---> NETGEAR ROUTER ---> CISCO 3550 SWITCH ---> NETWORK DEVICES WITH INTERNET ACCESS

    The Netgear router is probably what's doing the natting. Is the 3550 configured for routing or is it straight L2? If you have the 3550 configured as L3, then it's going to be easy to do what you want. Just add a static route on the Netgear to point the subnet that it doesn't know about to the 3550. For example, if the Netgear is addressed at 192.168.1.1 and the Cisco 3550 is addressed at 192.168.1.2, but it also knows about the 192.168.0.0/24 (separate vlan), then you would put a static route on your Netgear for 192.168.0.0/24 to go to 192.168.1.2.
    The way that I would do it is to create a separate vlan on the 3550 and assign an address to it. Once you do that, make the port that the other switch connects to an access port of that vlan. (It would need to be on the same subnet as the existing equipment.) All of your devices would use it as a default gateway and then you would do the rest as above. You could also use RIP between the Netgear and Cisco if you can't do static routing.
    HTH,
    John

  • Does Airport Express support multiple ethernet connections via a switch?

    If I use the following configuration, with the Airport Express extending my network, will it handle multiple devices connected via a switch?
    Modem---Airport Extreme- - -802.11n- - -Airport Express---Switch---multiple devices (eg. network printer and iMac).
    Or do I need to use a second Airport Extreme instead?

    It works for me—even when the AirPort Express device is configured to extend the wireless network created by the AirPort Extreme router.

Maybe you are looking for